Weblink from groups calendarview Graph API doesn't work event after encoding

Mostafa Abdellah 0 Reputation points

webLink for groups calendar view returned in graph API doesn't work correctly.

Steps to reproduce:

  1. Create an event in a calendar group
  2. call Graph API https://graph.microsoft.com/v1.0/groups/{GroupId}/calendar/calendarview?$Top=10&$select=webLink,subject,id&startdatetime=2023-01-30T16:54:11.890Z&enddatetime=2023-07-30T15:54:11.891Z
  3. returned weblink example "webLink": "https://outlook.office365.com/calendar/deeplink/read/group/tenant.onmicrosoft.com/AccountingO365_Cs162adfsFixCalendar/AAMkAGVkOGVlMDM4LWNlY2ItNDNkZS1hY2I1LTQ4YzJjZDNkMDVmZAFRAAgI2wPnQwhAAEYAAAAAbAkvu4LrVEiQM4b4wHlrSwcAjqRLsHAS6ECpPiwPJ4o/wAAAAAABDQAAjqRLsHAS6ECpPiwPJ4o/wAAAAAARFAAAEA==",
  5. open the URL in the browser https://outlook.office365.com/calendar/deeplink/read/group/tenant.onmicrosoft.com/AccountingO365_Cs162adfsFixCalendar/AAMkAGVkOGVlMDM4LWNlY2ItNDNkZS1hY2I1LTQ4YzJjZDNkMDVmZAFRAAgI2wPnQwhAAEYAAAAAbAkvu4LrVEiQM4b4wHlrSwcAjqRLsHAS6ECpPiwPJ4o%2FwAAAAAABDQAAjqRLsHAS6ECpPiwPJ4o%2FwAAAAAARFAAAEA%3D%3D
  6. browser returned a blank screen with a loading icon
  7. network tab shows 404 for the request URL: https://outlook.office365.com/search/api/v1/recommendations

with the following response 

{"error":{"code":"ErrorItemNotFound","message":"The specified object was not found in the store.","target":"","httpCode":404,"recommendedAction":"Escalate to [3SRecAlerts@microsoft.com] if the issue persists."},"Instrumentation":{"TraceId":"d5522a1a-5f99-264e-bcc7-ca327b5a3e67"}}

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

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,886 Reputation points

    Hello @Mostafa Abdellah

    Thanks for reaching out!

    The recommended time window used in the CalendarView should ideally be not more than one week. This is because CalendarView API does a lot of processing in the backend before providing the results.

    Additionally, The webLink property specifies a URL that opens the event in only earlier versions of Outlook on the web. The following is its URL format, with {event-id} being the URL-encoded value of the id property:

    • For work or school accounts: https://outlook.office365.com/owa/?itemid={event-id}&exvsurl=1&path=/calendar/item
    • For Microsoft accounts: https://outlook.live.com/owa/?itemid={event-id}&exvsurl=1&path=/calendar/item

    To open the event in a current version of Outlook on the web, convert the URL to one of the following formats, and use that URL to open the event:

    • For work or school accounts: https://outlook.office365.com/calendar/item/{event-id}
    • For Microsoft accounts: https://outlook.live.com/calendar/item/{event-id}

    Please check and validate the same. Reference: Events Resource Type

    Hope this helps.

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