Graph API Calender Event Web Link has wrong encoding

JO-5324 61 Reputation points

I am using the following Graph API endpoint:

The response contains events in the following format:
"webLink": "",

As we can see the webLink property also contains the event ID, but is encoded.
When I use the following function to decode the webLink property:


I receive:

When you compare this result with the original event ID you can see, that the result is different.

  • instead of _
    / instead of -

So it seems that the webLink is encoded wrong.
Has anyone experienced the same?
If my assumption is correct where can I report this bug?

Thank you in advance.

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

2 answers

Sort by: Most helpful
  1. ShivaniRai-MSFT 2,726 Reputation points

    Hi @JO-5324 ,

    I am able to replicate this scenario. It seems to be by design and not a bug as we are able to access the event using webLink from the response.

    Hope this helps.

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

    0 comments No comments

  2. JO-5324 61 Reputation points

    It seems that MS is using web safe bas64 encoding, this is the cause for some different characters.

    0 comments No comments