webLink for calendar events returned in graph API doesn't work correctly

Vladimir Yakovlev 1 Reputation point
2022-02-10T09:30:03.6+00:00

webLink for calendar events returned in graph API doesn't work correctly. Giff with details attached.

Steps to reproduce:

  1. Create an event in the calendar
  2. Call REST API GET https://graph.microsoft.com/v1.0/me/events?$select=subject,weblink
  3. Open webLink in new tab
  4. Open webLink as is
  5. Create link as recommended in docs https://outlook.office365.com/calendar/item/{event-id}

Actual behavior 

  • Opened work week or day

Expected behavior

  • Opened exact calendar event
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-02-10T17:28:34.003+00:00

    Hi @Vladimir Yakovlev ,

    Based on my test you need to encode ‘=’ in event id. '=' sign is considered as query parameter in browsers/url, so this needs to be encoded.
    You need to replace ‘=’ with ‘%3D’ in event id.

    173242-latestciimage.png

    Once you replace it, url will look like this.

    173218-latestcipic2.png

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

    0 comments No comments

  2. Vladimir Yakovlev 1 Reputation point
    2022-02-11T18:20:47.017+00:00

    Do you mean a new approach with creating a link https://outlook.office365.com/calendar/item/{event-id} ?

    No, It didn't help.

    P.S. Failed to upload Giff, here is a link https://disk.yandex.ru/i/Nxd8JWJieyClyg

    0 comments No comments

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.