Azure Logic Apps includes built-in tracking that you can enable for parts of your workflow. To help you monitor the successful delivery or receipt, errors, and properties for business-to-business (B2B) messages, you can create and use AS2, X12, and custom tracking schemas in your integration account. This reference guide describes the syntax and attributes for these tracking schemas.
X12 transaction set acknowledgment - agreementProperties
Property
Required
Type
Description
senderPartnerName
No
String
Name for the partner X12 message sender
receiverPartnerName
No
String
Name for the partner X12 message receiver
senderQualifier
Yes
String
Qualifier for the partner X12 message sender
senderIdentifier
Yes
String
Identifier for the partner X12 message sender
receiverQualifier
Yes
String
Qualifier for the partner X12 message receiver
receiverIdentifier
Yes
String
Identifier for the partner X12 message receiver
agreementName
No
String
Name for the X12 agreement that resolves the messages
X12 transaction set acknowledgment - messageProperties
Property
Required
Type
Description
direction
Yes
Enum
Message flow direction (send or receive)
interchangeControlNumber
No
String
Interchange control number for the functional acknowledgment. This value populates only for the sender when a functional acknowledgment is received for the messages sent to the partner.
functionalGroupControlNumber
No
String
Functional group control number for the functional acknowledgment. This value populates only for the sender when a functional acknowledgment is received for the messages sent to the partner.
isaSegment
No
String
The Interchange Control Header (ISA) segment for the X12 message. This value populates only for the sender when a functional acknowledgment is received for the messages sent to the partner.
gsSegment
No
String
GS segment in the X12 message. This value populates only for the sender when a functional acknowledgment is received for the messages sent to the partner.
respondingFunctionalGroupControlNumber
No
String
Control number for the responding functional group
respondingFunctionalGroupId
No
String
ID for the responding functional group that maps to AK101 in the acknowledgment
respondingTransactionSetControlNumber
No
String
Control number for the responding transaction set
respondingTransactionSetId
No
String
ID for the responding transaction set that maps to AK201 in the acknowledgment
statusCode
Yes
Boolean
Acknowledgment status code for the transaction set
processingStatus
Yes
Enum
Processing status for the acknowledgment with these permitted values: Received, Generated, and Sent
correlationMessageId
No
String
Message correlation ID, which combines these values: {agreementName}{interchange-or-functionalGroup-ControlNumber}{transactionSetControlNumber}
isMessageFailed
Yes
Boolean
Whether the X12 message failed
ak2Segment
No
String
Acknowledgment for a transaction set in the received functional group
ak3Segment
No
String
Reports errors in a data segment
ak5Segment
No
String
Reports whether the transaction set identified in the AK2 segment is accepted or rejected, and why
X12 interchange - tracking schema
The following syntax describes the schema for tracking an X12 interchange:
X12 functional group acknowledgment - agreementProperties
Property
Required
Type
Description
senderPartnerName
No
String
Name for the partner X12 message sender
receiverPartnerName
No
String
Name for the partner X12 message receiver
senderQualifier
Yes
String
Qualifier for the partner X12 message sender
senderIdentifier
Yes
String
Identifier for the partner X12 message sender
receiverQualifier
Yes
String
Qualifier for the partner X12 message receiver
receiverIdentifier
Yes
String
Identifier for the partner X12 message receiver
agreementName
No
String
Name for the X12 agreement that resolves the messages
X12 functional group acknowledgment - messageProperties
Property
Required
Type
Description
direction
Yes
Enum
Message flow direction (send or receive)
functionalGroupControlNumber
No
String
Functional group control number for the technical acknowledgment. This value populates for the sender when a technical acknowledgment is received from partners.
interchangeControlNumber
No
String
Interchange control number. This value populates for the sender when a technical acknowledgment is received from partners.
isaSegment
No
String
Same as interchangeControlNumber, but populates only in specific cases
gsSegment
No
String
Same as functionalGrouControlNumber, but populates only in specific cases
respondingFunctionalGroupControlNumber
No
String
Control number for the original functional group
respondingFunctionalGroupId
No
String
Maps to AK101 in the acknowledgment functional group ID
isMessageFailed
Yes
Boolean
Whether the X12 message failed
statusCode
Yes
Enum
Acknowledgment status code with these permitted values: Accepted, Rejected, and AcceptedWithErrors
processingStatus
Yes
Enum
Processing status for the acknowledgment with these permitted values: Received, Generated, and Sent
ak903
No
String
Number of received transaction sets
ak904
No
String
Number of accepted transaction sets in the identified functional group
ak9Segment
No
String
Whether the functional group identified in the AK1 segment is accepted or rejected, and why
Custom
You can set up custom tracking that logs events from the start to the end of your logic app workflow. For example, you can log events from layers that include your workflow, SQL Server, BizTalk Server, or any other layer. The following section provides custom tracking schema code that you can use in the layers outside your workflow.
The following syntax describes the schema for custom tracking:
Type for the run source with these permitted values: Microsoft.Logic/workflows, custom**
source
Yes
String or JToken
If the source type is Microsoft.Logic/workflows, the source information must follow the described schema. If the source type is custom, the schema has JToken type.
systemId
Yes
String
The system ID for the logic app
runId
Yes
String
The run ID for the logic app
operationName
Yes
String
Name for the operation, for example, action or trigger
repeatItemScopeName
Yes
String
Repeat the item name if the action is in a foreach or until loop
repeatItemIndex
Yes
Integer
Repeated item index number to indicate that the action is in a foreach or until loop
trackingId
No
String
Tracking ID to correlate the messages
correlationId
No
String
Correlation ID to correlate the messages
clientRequestId
No
String
Client can populate this property to correlate messages
eventLevel
Yes
String
Event level
eventTime
Yes
DateTime
Event time in UTC format: YYYY-MM-DDTHH:MM:SS.00000Z
recordType
Yes
String
Track record type with this permitted value only: custom