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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dyns.ntd.asia/power-dynamics/power-platform/power-automate/create-an-appointment-by-outlook-graph-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
