web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to create a calend...
Power Automate
Unanswered

How to create a calendar event using Graph API via http request?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

Can you share the step to a calendar event using Graph API via http request that successfully creates a calendar event?

 

Thanks,

 

Categories:
I have the same question (0)
  • Rodrigo Hentz Profile Picture
    Microsoft Employee on at

    Hi @dave8 how are you?

     

    Thanks for using our community. 

     

    @dave8, did you take a look on the documentation at Create Event - Microsoft Graph v1.0 | Microsoft Docs ?

     

    There are some samples that you can check and try.

     

    Please let me know if this information helped on your question.

     

    Regards.

    Rodrigo Hentz

    Microsoft Support Engineer

  • Dave Wi Profile Picture
    on at

    I have already tried that via graph explorer while via same user in the flow it does not work as expected with the following parameters:

     

     however I am using oAuth athentication in the flow that throws following error:

    Http request failed as there is an error getting AD OAuth token: 'AA<XXXXXX>>: The resource principal named https://graph.microsoft.com/Calendars.ReadWrite was not found in the tenant named <XXXXXX>>. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
    Trace ID: <XXXXXX>>
    Correlation ID: <XXXXXX>>
    Timestamp: 2021-03-26 08:21:01Z'

     

    I have specified the URI as follows with correct request body:

    http1.png

     

    And, the OAuth parameters as follows with the correct information:

    HTtp2.png

     

    Any clue on the error? It seems to me that I should add application as service principal to grant permission in some sort of group or something? I am unsure though. I do not know where and how to resolve it!

     

    Thanks,

  • Rodrigo Hentz Profile Picture
    Microsoft Employee on at

    Hi @dave8 how are you?

     

    @dave8 this is regarding a permission issue. I think you have created an app registration on Azure and also a secret for this app. So, when executing you need to use this configuration, as you added but now not use the /me/events

     

    You have to add the specific user ID. This information is on Azure AD at the user.

     

    So add on the action like my sample below:

     

    rohentz_0-1617022780422.png

     

    For reference Create Event - Microsoft Graph v1.0 | Microsoft Docs

     

    Please let me know if this information helped on your question.

     

    Regards.

    Rodrigo Hentz

    Microsoft Support Engineer

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard