Issue with M365 List Places Graph REST API v1.0: 500 Error When Fetching Rooms in a Room List with Invalid Character (?) in Email

Aman Barbaria 0 Reputation points
2024-08-23T06:28:02.3966667+00:00

Hello,

I'm encountering a 500 API error when fetching rooms in a Room List using the M365 API. The issue seems to be related to a Room List with the email Turquoise?HelsinkiList@mododev3.onmicrosoft.com, which contains a ? character.

The API request is as follows:

https://graph.microsoft.com/v1.0/places/Turquoise%3FHelsinkiList%40mododev3.onmicrosoft.com/microsoft.graph.roomlist/rooms

This returns the following error response:

{
    "error": {
        "code": "UnknownError",
        "message": "",
        "innerError": {
            "date": "2024-08-23T06:12:01",
            "request-id": "bfff392e-b45a-476e-903e-be3165feda85",
            "client-request-id": "bfff392e-b45a-476e-903e-be3165feda85"
        }
    }
}

I've tried encoding the Room List email in various ways, but the error persists. The ? character seems to be invalid, and while URL encoding works for other characters like #, it doesn't seem to work for ?.

Interestingly, when I use the Room List ID instead of the email in the API request path, the request works fine. However, the M365 documentation advises against using the ID in the API, stating that the email address property must be used.

Is there a workaround for using Room List emails with invalid characters? Is there an official way to handle this situation, or is it safe to use the Room List ID despite the documentation's note?

Thanks in advance for your help!

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

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 41,206 Reputation points
    2024-08-23T09:15:06.6733333+00:00

    Hi @Aman Barbaria

    Is Turquoise?HelsinkiList@mododev3.onmicrosoft.com a valid room-list-emailaddress? Have you tried encoding only the "?" character? Turquoise%3FHelsinkiList@mododev3.onmicrosoft.com

    Additionally, using the room-list-ID does not pose a security risk, but the room-list-ID is not immutable. It may change if the mailbox or tenant configuration changes. This is why the documentation recommends using the room-list-emailaddress instead of the room-list-ID.

    If you are unable to get the rooms using the room-list-emailaddress, I suggest opening a support ticket to get help from the Microsoft support team.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.