Keep the order while setting extensionProperty values

Nicolas Zona 0 Reputation points
2024-07-16T17:12:51.43+00:00

Hello,

We figured out that the extension property values set via Graph API are not retrieve in the same order that they were set.

We reproduced this via the powershell library but also via the graph explorer.

It seems that the values are ordered differently and this is not mentioned in the extensionProperty documentation. I would consider it as a bug.

To reproduce the bug, you can call the patch user request with this body:

{
    "extension_clientID_xxx": [
        "smtp1@example.com",
        "smtp2@example.com",
        "smtp4@example.com"
    ]
}

Then, the values retrieved would not be in the same order.

Does anyone have a workaround for this? I do not have the possibility of performing actions in the receiving system.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,767 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.