Set SingleValueExtendedProperties from Outlook javascript API

neeraj badalu 36 Reputation points
2024-02-15T08:41:11.2533333+00:00

Hi We have office outlook 365 Calendar addin application, in this i want to save some additional data using Outlook javascript API and retrieve it from Graph api (SingleValueExtendedProperties). We tried to load and set loadCustomPropertiesAsync using below Office.context.mailbox.item.loadCustomPropertiesAsync(function (asyncResult) { const customProps = asyncResult.value; customProps.set("Office365AddInId", '999901'); customProps.saveAsync( Property get set from Outlook javascript API but not available from Graph API. Let us know how to retrieve data from Graph API or other way of saving data from Outlook JavaScript API in SingleValueExtendedProperties and retrieving from Graph API Regards Neeraj

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,626 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
871 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,898 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. awijekoon 950 Reputation points Microsoft Vendor
    2024-02-17T21:38:07.6766667+00:00

    neeraj badalu

    are you trying to find specific event's custom property value or filter the event which has custom property.

    for the specific event

    GET /me/calendars/{id}?$expand=singleValueExtendedProperties($filter=id eq '{id_value}') https://learn.microsoft.com/en-us/graph/api/singlevaluelegacyextendedproperty-get?view=graph-rest-1.0&tabs=http#http-request

    for filtering events

    /me/events?$filter=singleValueExtendedProperties/Any(ep: ep/id eq 'String {00020329-0000-0000-C000-000000000046} Name myCusProp' and ep/value ne null)