Recurring integration in D365FO(Enqueue).
Requirement : To get the files from blob and upload it in DMF Entities.
To achieve this we are using Recurring integration(Enqueue) using logic apps.
Step 1:
Create DMF import project in Data management and open manage recurring data jobs.
Step 2:
Create recurring data job.
1. Click new, Provide name and description.
2. Enter application ID and Make Enabled column as Yes.
3. Set the recurrence.
4. Enable Is recurring Data job enabled?
5. Copy the Activity Id.
Step 3:
Creating logic app.
Find below logic app flow.
2. Establishing the blob connection and getting file from specific blob folder.
3. Creating HTTP web request with POST method.
Method : Post
Url :https://<base URL>/api/connector/enqueue/<activity ID>?entity=<entity label name>
Body : From Step 2.
Authentication: Input your authentication details(client, secret,scope and tenant Id)
4. Initially when it gets triggered it will be in Queued state. So added Delay trigger to get the d365 execution status.
5. To get the Execution status, triggered the HTTP web request.
Method: Post
Url : D365 Url/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetMessageStatus
Body :
{
"messageId":"<string>"
}
Authentication: Input your authentication details(client, secret,scope and tenant Id).
No comments:
Post a Comment