Connecting Outlook with Auth 2.0

Hello all users, can someone share the workflow or guide me on how to connect Outlook using OAuth 2.0.

Regards,
Hardik Durgam.

Hi @Hardik_Durgam

The following document from UiPath has step by step guide to get started with your requirement. Hope this helps.

Cheers

1 Like

Thanks for the doc @arjunshenoy . Will go through the doc and let you know :slight_smile:

Regards,
Hardik Durgam.

1 Like

To connect Outlook using OAuth 2.0 in UiPath, you can follow these steps:

  1. Create a Microsoft App: To use OAuth 2.0 with Microsoft Outlook, you need to create a Microsoft App and obtain the client ID and client secret. To do this, go to the Microsoft App registration portal and sign in with your Microsoft account. Then, create a new application and copy the client ID and secret.
  2. Add the Microsoft Outlook API: To access Outlook data, you need to add the Microsoft Outlook API to your app. You can do this by going to the API permissions section of your Microsoft App and adding the Microsoft Graph API.
  3. Obtain an access token: To access Outlook data, you need an access token. To obtain an access token, you can use the UiPath Get OAuth 2.0 Token activity. This activity requires the client ID, client secret, and the resource URL (https://graph.microsoft.com).
  4. Use the access token in your UiPath workflow: After you have obtained the access token, you can use it in your UiPath workflow to access Outlook data. You can do this by using the UiPath HTTP Request activity to make API calls to the Microsoft Graph API and retrieve the data you need.

Note: Keep in mind that OAuth 2.0 tokens have a limited lifespan and you will need to refresh the token periodically. UiPath provides the Refresh OAuth 2.0 Token activity that can be used to refresh the token when it expires.