How to get only the outlook calendar using graph api?

Swaminathan Kannusamy 0 Reputation points
2023-12-12T12:48:11.6233333+00:00

I am trying to embed the outlook calendar in a web page.

I see, there is a weblink in the "create an event" response using graph api, which can be used to display the calendar in a web page. But it shows the other outlook items like email, people, groups etc..
Is there a way to get only the calendar?

Please help. Thanks in advance.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diah.Karim-MSFT 335 Reputation points Microsoft External Staff
    2023-12-13T02:48:51+00:00

    Hi there,

    Once you created the event, the weblink provided will open a modal dialog as below.

    But you mentioned that it shows the other outlook items like email, people, groups etc..

    Maybe can provide me bit info which UI part related to the info?

    User's image

    Suggestion: Because the UI generated with specific design, maybe if you only require a basic info like subject, content, location name & datetime, then you can utilise the Graph API GET call https://graph.microsoft.com/v1.0/me/calendar/events/{id}

    After fetching the info, you can create a custom UI for it.

    0 comments No comments

Your answer

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