To give the Microsoft Dynamics 365 Scope activity the ability to authenticate using OAuth 2.0 and to enable the other activities to successfully send requests to the Web API, you must complete the following steps:
The Microsoft Dynamics 365 activities have a dependency on the Common Data Service. Because of this dependency, the activities primarily support Customer Engagement solutions.
Currently, Microsoft Dynamics for Finance & Operations is not supported.
Follow the Common Data Service specific instructions in the Microsoft documentation to create an application registration (these steps include assigning the appropriate API permissions).
For more information about app registration for the Common Data Service, see Use OAuth with Common Data Service in the Microsoft documentation.
When registering your application, take note of the Application (client) ID and Directory (tenant) ID values; you'll enter these in the Microsoft Dynamics Application Scope activity.
Follow the instructions in the Microsoft documentation to configure your registered application to connect as an app (i.e. connect using a client secret). For more information about client secrets, see Use Client Secrets & Certificates in the Microsoft documentation.
For quick reference, the image below shows how we created our client secret for our example projects.
Log in to your Microsoft Dynamics 365 Customer Engagement account. Go to Settings > Security > Users > New User.
Change the view to Application User. Enter the Application ID from the previous step in the Application ID field.
Complete the other fields such as (Full Name) and (Primary Email) and then save the user.
The Microsoft Dynamics Application Scope activity requires a
SecureString input for the ClientSecret property. To enter the
SecureString variable, it's recommended that you follow the suggestions and steps in the Credential Management section of this guide.
- Create a new automation project.
- Open UiPath Studio.
- Under New Project, click Process (this opens a New Blank Process window).
- Enter a project Name, Location, and Description.
- Click Create.
- Install the UiPath.MicrosoftDynamics.Activities package.
- In the Design ribbon, click Manage Packages (this opens the Manage Packages window).
- Under All Packages, click Official!
- In the Search bar, enter Dynamics.
- Click, install and accept the license for the UiPath.MicrosoftDynamics.Activities.
- For more information about Uipath Studio packages, see Managing Packages in the Studio Guide.
Now that you have completed the setup, you can start adding the Microsoft Dynamics 365 activities to your project.
For a hands-on learning experience and to quickly start using the activities, see the Quickstart guide. This guide provides step-by-step instructions to help you create a working sample of the different activities so that you can verify the connection to your Microsoft Dynamics 365 instance and get familiar with the input/output properties.
To learn more about the Microsoft Dynamics 365 activities (including example property inputs/outputs), see the Activities page for a complete activity list and links to the activity detail pages.
Updated 25 days ago