> For the complete documentation index, see [llms.txt](https://dyns.ntd.asia/power-dynamics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dyns.ntd.asia/power-dynamics/power-platform/power-automate/create-an-appointment-by-outlook-graph-api.md).

# Create an Appointment by Outlook Graph API

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

<figure><img src="/files/SgmkWnGo3ZRXkzgUTvrj" alt="" width="375"><figcaption><p>2 Actions</p></figcaption></figure>

## Details of the configuration

My scenarios:&#x20;

* 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:

<figure><img src="/files/cdefXoX0Af9fuN9BvpZ7" alt=""><figcaption><p>Details of configurations</p></figcaption></figure>

***

{% hint style="info" %}
For the sample JSON code, you can find it in [**Graph Explorer**](https://developer.microsoft.com/en-us/graph/graph-explorer)**.**
{% endhint %}

<figure><img src="/files/Y7jkhjWxA3n68A4yUVIY" alt="" width="563"><figcaption><p>My sample from Graph Explorer</p></figcaption></figure>

```json
// 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\...

<figure><img src="/files/9UNnJiLOOEOfT2szNMMS" alt=""><figcaption><p>Testing</p></figcaption></figure>

Thank you & Hoping well .. :tada:\
\&#xNAN;**\[NTD]yns.asia**
