none
How do I read the “UserProperty” value in Outlook using MS Graph RRS feed

  • Question

  • We have legacy code that writes custom data to the "UserProperties" collection of an Outlook AppointmentItem object. We've now switched to using Outlook on the Web (OWA).

    Using MS Graph, how does one retrieve these values?

    I've been pouring over this documentation (Outlook extended properties overview) but I can't get it to work. I'm using the MS Graph Explorer.

    Here is the event for which I'm trying to retrieve information custom data.

    {
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('45d5e17d-348a-4ca8-b53c-c7d353b928b3')/events",
    "value": [
        {
            "@odata.etag": "W/\"GKUifH9QgE6zbEa7VG6rswABBwIJDw==\"",
            "id": "AAMkADU4MzkxN2RmLTdiZDAtNDIwYS04NjQzLTUzNzMyMjM0Y2VkNQBGAAAAAABGjw0ByCaySL6aUxJmew3qBwDwiT27qO5xT6RMWiWBhwRzAAAADIqqAADdUihFgnKFTYATejxXFszxADsYsAgxAAA=",
            "createdDateTime": "2018-07-11T19:17:12.340183Z",
            "lastModifiedDateTime": "2018-09-17T19:50:10.7118964Z",

    I assume the "id" value of this event is the one that I should be using.

    Here is the REST call I'm making (Note: using BETA)

    https://graph.microsoft.com/beta/me/events('AAMkADU4MzkxN2RmLTdiZDAtNDIwYS04NjQzLTUzNzMyMjM0Y2VkNQBGAAAAAABGjw0ByCaySL6aUxJmew3qBwDwiT27qO5xT6RMWiWBhwRzAAAADIqqAADdUihFgnKFTYATejxXFszxADsYsAgxAAA=')?$expand=SingleValueExtendedProperties($filter=id%20eq%20'Integer%20{0006303D-0000-0000-C000-000000000046}%20Name%20TaskID'  )

    The UserProperty name is "TaskID" and it holds an Integer. I'm not clear about what the GUID value should be.

    I've tried the GUID of the AppointmentItem itself; then the GUID of the "UserProperties" collection contained within the AppointmentItem, and finally the GUID of the "UserProperty" property contained within the "UserProperties" collection. Nothing has worked.

    Any clues?


    Tuesday, September 18, 2018 3:17 AM

All replies

  • Hi TSRACT,

    Through my search, I found a related article. Here is a link:

    Get Extended Properties on User using Microsoft Graph

    Hopefully it helps you.

    Best Regards,

    Simon


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Tuesday, September 18, 2018 1:14 PM
    Moderator
  • Thank you Simon.  I've seen the link before.  
    (NOTE:  I've tried what follows with v1.0 as well as Beta)

    This query allows me to get the event for which I'm looking.
    https://graph.microsoft.com/beta/me/events?$filter=start/datetime eq '2018-08-25T22:30'

    Adding "&$expand=extensions" like so
    https://graph.microsoft.com/beta/me/events?$filter=start/datetime eq '2018-08-25T22:30'&$expand=extensions


    Produces
    {
        "error": {
            "code": "InternalServerError",
            "message": "Error while processing response.",
            "innerError": {
                "request-id": "8129effd-44c5-4832-9711-92d3c7b83611",
                "date": "2018-09-18T13:52:50"
            }
        }
    }

    Tuesday, September 18, 2018 1:56 PM
  • Sorry for late response.

    For your question, we will refer to related Team to ask help. Since this forum is focused on VBA and EWS issues. 

    Thank you for understanding. However, If you have update for this, please feel free to let me know.

    Regards,

    Simon


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Tuesday, September 25, 2018 10:31 AM
    Moderator