简体   繁体   中英

How to get Job ID from Dynamics 365 Finance and Operations of Recurring Integration Job using Rest API call

I want to fetch job details from Dynamics 365 Finance and Operations for that I need Job Id I am unbale to find out way how to get Job Id from Dynamics 365 Finance and Operations using any Rest API

在此处输入图像描述

Programmatically the following code block can retrieve the Job ID

POST /data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ImportFromPackage
BODY
{
    "packageUrl":"<string>",
    "definitionGroupId":"<string>",
    "executionId":"<string>",
    "execute":<bool>,
    "overwrite":<bool>,
    "legalEntityId":"<string>"
}

The following link consists of the official documentation, that can help to retrieve and manage the Job ID.

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/data-management-api

Are these jobs that you have created? I think (I cannot find the reference documentation for this, strange?) that you get the message id back from Dynamics when you call the /api/connector/enqueue/ endpoint.

If you are not the party that creates the job, I do not think that you can get the id. What should the call look like that gets the id of a message that you cannot id?

You can then use the message id to get more information about the message by calling the /data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetMessageStatus:

POST /data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetMessageStatus
BODY
{
    "messageId":"<string>"
}

, see https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/recurring-integrations#api-for-getting-message-status

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM