Recurring Integrations in Dynamics 365 for Operations

To enqueue messages for recurring integrations in Dynamics 365 for operations, the sample app published in github is helpful. To make this file enqueue work seamlessly, few setups in azure portal and Dynamics 365 for operations need to be done before running the sample application.

To get this to work on your local env, please make sure you make the following setup

Go to <Path where Zip is extracted>\Dynamics-AX-Integration-master\DIXFSamples

Make sure below folders are created in your C:\Temp folder

Folder structure can be altered by modifying below parameters in the app.Config file

Make sure you set below parameters as per you env

AAD Tenant –Azure tenant value. One way to fix this out is open your application web.config file and you will find a

Azure client ID -The client Id copied in Azure setup (step 4)

Rainier URI – Dynamics Ax URL

Recurring job Id – Activity Id for the recurring job created in Ax

Entity name – Entity for which the recurring job is created

In the visual studio solution explorer, Go to Helpers and open AuthenticationHelper.CS > AuthorizationHeader method, if you see that code is not using Client App secret, please make below code change (comment out existing code for acquiring the token and add new code). This code should be updated in github code soon.

If you see that client App secret is already being used, please skip below code changes