MGCLatticeAsyncOperationTracking
Tracking table for asynchronous service operations queued to the D365 batch framework. Records the target service and operation, serialized request payload, lifecycle status (Queued, Processing, Succeeded, Failed), batch job reference, and the resulting document, posted document number, error code or error details. RequestId (the submission's idempotency key) is unique. CreatedBy is the submitting user (platform-stamped, unlike the caller-supplied UserContext); the processor re-checks that user's access to the target service operation before it runs the operation. ProcessingStartedDateTimeUtc and RecoveryCount drive the recovery of operations whose processing stopped without a result (see MGCLatticeAsyncOperationProcessorService::recoverStaleProcessing).
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
TrackingId | MGCLatticeTrackingId | No | Identifier returned when an asynchronous operation is queued. Use it to query the status of the operation. |
RequestId | MGCLatticeRequestId | No | Identifier the caller assigns to a service request. The services recognize a repeated request by this ID, so the operation is not run twice. |
CorrelationId | MGCLatticeCorrelationId | No | Identifier that traces a request across systems. It is copied to the log entries and responses of that request. |
ServiceName | MGCLatticeServiceName | No | Name of the custom integration service. |
OperationName | MGCLatticeOperationName | No | Name of the service operation. |
LegalEntityId | DataAreaId | No | |
UserContext | UserId | No | |
Status | MGCLatticeAsyncOperationStatusType | No | Asynchronous operation status. |
SubmittedDateTimeUtc | TransDateTime | No | |
CompletedDateTimeUtc | TransDateTime | No | |
DocumentId | MGCLatticeDocumentId | No | Identifier of the resulting document. |
PostedDocumentId | MGCLatticeDocumentId | No | The number of the document the operation produced (invoice, packing slip, confirmation, journal or created order). A repeated request with the same request ID returns it. |
ErrorCode | MGCLatticeServiceErrorCodeType | No | Machine-readable service error code. |
Message | MGCLatticeLogMessageShort | No | Short log or status message. |
ErrorDetails | MGCLatticeSamplePayload | No | Sample request or response payload content. |
RequestPayload | MGCLatticeSamplePayload | No | Sample request or response payload content. |
BatchJobId | MGCLatticeBatchJobId | No | Reference to the D365 batch job record. |
ProcessingStartedDateTimeUtc | TransDateTime | No | The time a processor claimed the operation and started to run it. |
RecoveryCount | MGCLatticeAttemptCount | No | The number of times the operation was queued again after its processing stopped before it started posting. |