Page cover image

📤Create an Appointment by Outlook Graph API

#outlook, #outlookevent, #dataverse, #powerplatform, #graph

Last week, I configured the synchronization of email, appointments, contacts, and tasks between Dataverse and Outlook for my client. However, this functionality is available for the Dynamcis 365 CE application and not for the Power Platform (without any D365CE apps)

Then, I tried to create an Outlook appointment from the Appointment activity by Power Automate.

Using the Power Automate action of Outlook

I worked with 2 actions on Power Automate.

  • Send HTTP request to Outlook: using JSON of MS Graph API

  • Create Event (V4) to Outlook: pre-built action from the Power Automate

2 Actions

Details of the configuration

My scenarios:

  • Trigger: An Appointment created or updated (Fields: Start Time, End Time)

  • Action: Create an Event in my Outlook Calendar. My testing with 2 actions:

    • Using "Send HTTP Request" action

    • Using "Create event (V4)" action.

For instance, I used my calendar and my email for that:

Details of configurations

For the sample JSON code, you can find it in Graph Explorer.

My sample from Graph Explorer
// My sample code:
{
    "subject": "[[Subject]]",
    "start": {
        "dateTime": "[[StartTime]]",
        "timeZone": "[[TimeZone]]"
    },
    "end": {
        "dateTime": "[[EndTime]]",
        "timeZone": "[[TimeZone]]"
    },
    "attendees": [
        {
            "emailAddress": {
                "address": "[[EmailAddress]]",
            },
            "type": "Required"
        }
    ]
}

Testing now...

Okay, I have done form my sample configuration. And run testing now...

Testing

Thank you & Hoping well .. 🎉 [NTD]yns.asia

Last updated

Was this helpful?