In this article
Overview
Snaps in MS Dynamics 365 Finance and SCM Snap Pack require an OAuth2 account to access the resources in Azure. For the OAuth2 account to authorize successfully, ensure to create and configure an application corresponding to the account as per the key steps in the Workflow. You would also require to register an application in Dynamics 365 Finance and operations apps with the details of the application registered in the Azure portal.
You can use this account type to connect MS Dynamics 365 Finance, and SCM Snaps with data sources that use an OAuth2 account.
Prerequisites
An Azure account with a paid subscription to create the application.
Register the Azure application in Dynamics 365 Finance and operations application.
OData V4.
Limitations and Known Issues
None.
Key steps in the workflow
Create an application in the Azure portal
Log in to the Microsoft Azure Portal.
Navigate to Azure services > Azure Active Directory.
Navigate to Add > App registration.
On the Register an application page, specify the name for registering the application and click Register. For more information on creating an application, refer to the Azure Active Directory Documentation.
To use an existing application, navigate to Portal Home > Azure Active Directory >App registrations > All applications. In the search box, specify the application name you want to use. The details of the registered application is displayed in the search list.
Define permissions
On the left navigation panel, navigate to Manage, select API permissions > Add a permission.
On the Request API permissions window, select Dynamics ERP and select the Delegated permissions listed under the Scopes and Permissions required for MS Dynamics 365 Finance and SCM.
Click Add Permissions and view all the permissions added under Configured permissions.
Click Grant admin consent confirmation and select Yes.
Click Overview and select Add a Redirect URI. You will be redirected to the Platform configurations page.
Under Platform configurations, click Add a platform.
Select Web and specify a valid Redirect URI https://cdn.elastic.snaplogic.com/api/1/rest/admin/oauth2callback/msdynamics365fo and click Configure. A popup message displays indicating that the application is successfully updated.
On the Platform configurations page, click Save.
Locate Application Credentials in the Azure Portal
To authorize your account in SnapLogic, you must have the following application credentials:
Application (client) ID
Directory (Tenant) ID
Client secret value
On the application page, under Essentials, make a note of the Application (client) ID, and Directory (tenant) ID.
In the left navigation panel, select Manage > Certificates & secrets.
On the Certificates & secrets page, click + New client secret.
In the Add a client secret window, enter the Description, select an option for Expires from the dropdown list and click Add.
The Client secret value and ID are generated. This value and the ID are required to configure the OAuth2 account.
Scopes and Permissions required for MS Dynamics 365 Finance and SCM
Learn more about Scopes and Permissions at Service endpoints overview.
Delegated permissions (User account only*) | |||
---|---|---|---|
Permission | Display String | Description | Admin Consent Required? |
offline_access (Mandatory for Auto-refresh token. | offline_access | offline_access must be assigned if you select the Auto-refresh token option. | Yes |
CustomService.FullAccess | Access Dynamics AX Custom Service | This permission allows the application to access all Microsoft Dynamics custom service APIs | No |
Odata.FullAccess | Access Dynamics AX data. | This permission allows the application to access Microsoft Dynamics AX as user or an application. | No |
AX.Full.Access | Access Dynamics AX online as organization use. | This permission allows the application to access all Microsoft Dynamics AX service endpoints. | No |
Register your External Application
Log in to Dynamics 365 Finance and operations application.
Navigate to System administration > Setup > Azure Active Directory applications and Select New.
Fill in the fields for the new record:
In the Client Id field, specify the application ID you registered in the Azure Active Directory.
In the Name field, specify a name for the application.
In the User ID field, select an appropriate service account user ID.
Select Save to apply the changes.
Specify the credentials and validate the Snap Account
Navigate to the Snap of your choice.
Configure the OAuth2 account with the details located in the registered application in the Finance and SCM OAuth2 Account.
Click Authorize. The Access and Refresh tokens are generated. You will be redirected to the sign-in page of the Azure Portal.
Sign in to Azure Portal with valid credentials to redirect to the Snap Edit account settings dialog. The Access and Refresh tokens are autopopulated but encrypted in the Account settings.
Validate the Snap Account. Learn more about Finance and SCM OAuth2 Account.
Troubleshooting
Error | Reason | Resolution |
---|---|---|
Error 401 | The Pipeline could not complete execution due to a connection error. | Reauthorize the account and retry. |
Snap Pack History
Release Snap Pack Version Date Type Updates November 2024 main29029 Stable Updated and certified against the current Snaplogic Platform release. August 2024 main27765 Stable Updated and certified against the current SnapLogic Platform release. May 2024 main26341 Stable Updated and certified against the current SnapLogic Platform release. February 2024 436patches26143 Latest Fixed an issue with the Dynamics 365 Finance and SCM Bulk Export Snap that displayed the error message twice when: Operation is Trigger Export Definition group ID is incorrect When error occurs is Stop Pipeline Execution (Views tab) February 2024 436patches25295 Latest Fixed an issue with the recurring bulk import operation for the Recurring Integrations API integration type in the Dynamics 365 Finance and SCM Bulk Import Snap, which previously displayed an error at the preprocessing step intermittently. February 2024 main25112 Stable Updated and certified against the current SnapLogic Platform release. November 2023 435patches24298 Latest Added the following Snaps in the Microsoft Dynamics 365 Finance and SCM Snap Pack: Dynamics 365 Finance and SCM Bulk Import: Bulk imports the data associated with the selected entity in the Microsoft Dynamics 365 Finance and SCM application. Dynamics 365 Finance and SCM Bulk Export: Bulk exports the data associated with a selected entity from the Microsoft Dynamics 365 Finance and SCM application. November 2023 main23721 Stable Updated and certified against the current SnapLogic Platform release. August 2023 434patches23466 Latest Enhanced the Dynamics 365 Finance and SCM Read and Dynamics 365 Finance and SCM Search Snaps with the Error out on no results checkbox, which customizes the error view when no results are returned. August 2023 434patches23129 Latest The Cross company checkbox is added to the Dynamics 365 Finance and SCM Create, Update, and Delete Snaps to ensure that the other company records are getting created, updated, and deleted. Fixed an issue with the Microsoft Dynamics Finance and SCM Snaps that failed when the string values (filter criteria) are passed without quotes. Fixed an issue with the Microsoft Dynamics Finance and SCM Snap that failed to execute after processing less number of records. August 2023 434patches22601 Latest The Instance URL field in the Finance and SCM Access Token Account is no longer expression enabled by default. Added proxy support for the Microsoft Dynamics 365 Finance and SCM Snap Pack. August 2023 main22460 Stable Updated and certified against the current SnapLogic Platform rThe Cross company checkbox is added to the Dynamics 365 Finance and SCM Create, Update, and Delete Snaps to ensure that the other company records are getting created, updated, and deleted. Fixed an issue with the Microsoft Dynamics Finance and SCM Snap that caused the Snaps to fail when the string values (filter criteria) are passed without quotes from the upstream Snap. Fixed an issue with the Microsoft Dynamics 365 Business Central and Microsoft Dynamics Finance and SCM Snaps that failed to execute after processing less number of records.lease. May 2023 main21015 Stable Upgraded with the latest SnapLogic platform release. February 2023 432patches20657 Latest Added the Dynamics 365 Finance and SCM Create, Update, and Delete Snaps to the Microsoft Dynamics 365 Finance and Supply Chain Management Snap Pack. February 2023 432patches20035 Latest Introduced the Microsoft Dynamics 365 Finance and SCM Snap Pack. This Snap Pack contains the following Snaps and accounts: