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.
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>"
}
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.