skip to Main Content

This is maybe a very dumb question but I am trying to create a hidden folder with multiValueExtendedProperties.
If I´m creating the folder like this:

POST https://graph.microsoft.com/v1.0/me/mailFolders

{
    "displayName": "Test",
    "isHidden": "true",
    "multiValueExtendedProperties": [
        {
            "id": "StringArray {66f5a359-4659-4830-9070-00050ec6ac6e} Name Recreation",
            "value": [
                "Food",
                "Hiking",
                "Swimming"
            ]
        }
    ]
}

The result is:

Post command

Looks good to me?!

But if I check the multiValueExtendedProperties, I`ll get no properties?

Get command

I want to use this with Powershell and I suspect, that if the return is not visible in Graph Explorer, I’ll also not get it working in Powershell?!

What I’m doing wrong?

2

Answers


  1. Chosen as BEST ANSWER

    Thanks, guys. I got it to work. I thank all of you for the help.


  2. In the image you posted the Get request is missing the & between includehiddenfolders $expand in your query parameter eg you should have something like

    https://graph.microsoft.com/v1.0/me/mailfolders/inbox?includehiddenfolders&$expand=multiValueExtendedProperties($filter=id+eq+'StringArray+0x36E8')
    

    The context in the response should be something like

    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('150bb06c-1c9a-4ac2-8b55-xxxxxxxx')/mailFolders(multiValueExtendedProperties())/$entity"

    which means your extendedproperty definition got passed through in your example it just ignored an invalid query string (instead of returning an error which would have been more helpful)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search