You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/logic-apps/monitor-track-b2b-transactions-standard.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Set up monitoring and tracking for B2B transactions or messages in
4
4
services: logic-apps
5
5
ms.topic: how-to
6
6
ms.reviewer: estfan, divswa, pravagar, azla
7
-
ms.date: 02/28/2025
7
+
ms.date: 03/07/2025
8
8
# As a B2B integration solutions developer, I want to learn how to monitor and track B2B transactions in my Standard workflows created with Azure Logic Apps.
9
9
---
10
10
@@ -99,7 +99,7 @@ For more information, see the following documentation:
99
99
-[Add agreements between partners in integration accounts](/azure/logic-apps/logic-apps-enterprise-integration-agreements)
100
100
-[Add trading partners to integration accounts](/azure/logic-apps/logic-apps-enterprise-integration-partners)
101
101
102
-
### Troubleshoot tracking problems
102
+
### Troubleshoot tracking setup problems
103
103
104
104
For tracking to work correctly, make sure that all the following conditions are met:
105
105
@@ -134,27 +134,29 @@ For tracking to work correctly, make sure that all the following conditions are
134
134
135
135
:::image type="content" source="media/monitor-track-b2b-transactions/example-x12-message-details.png" alt-text="Screenshot shows Premium integration account with B2B tracking selected, and a table with details about collected X12 messages.":::
136
136
137
-
###Message properties
137
+
## Message properties
138
138
139
139
The following tables list the properties available for each message type that B2B currently supports:
140
140
141
-
####AS2 message properties
141
+
### AS2 message properties
142
142
143
143
| Column name | Expanded name |
144
144
|-------------|---------------|
145
145
|**AgreementName**| Agreement name |
146
146
|**SenderParternerName**| Sender partner |
147
147
|**ReceiverPartnerName**| Receiver partner |
148
148
|**MessageStatus**| Message status |
149
-
|**MessageDirection**| Message direction (send or receive) |
149
+
|**MessageDirection**| Message direction (**`send`** or **`receive`**) |
150
150
|**MessageTime**| Message time |
151
151
|**MessageClientTrackingId**| Message client tracking ID |
152
152
|**MessageId**| Message ID from the message header |
153
153
|**IsMdnExpected**| Is a Message Disposition Notification (MDN) expected (**`true`** or **`false`**) |
154
154
|**AckStatus**| Acknowledgment status |
155
155
|**CorrelationMessageId**| An ID that correlates the message with an MDN |
156
156
157
-
#### X12 message properties
157
+
For more information about the JSON schema for these properties, see [Table schemas for tracking B2B transactions](tracking-table-schemas-standard.md).
158
+
159
+
### X12 message properties
158
160
159
161
| Column name | Expanded name |
160
162
|-------------|---------------|
@@ -174,23 +176,23 @@ The following tables list the properties available for each message type that B2
174
176
|**TransactionSetAckStatus**| Transaction set acknowledgment status |
175
177
|**FunctionalAckStatus**| Functional acknowledgment status |
176
178
177
-
## Tracking table schema
179
+
For more information about the JSON schema for these message properties, see [Table schemas for tracking B2B transactions](tracking-table-schemas-standard.md#).
178
180
179
-
In your Azure Data Explorer cluster, the database stores transaction data in a structured format.
181
+
## Database tables
182
+
183
+
In your Azure Data Explorer cluster, the database stores transaction data in a table-structured format. This table structure provides the capability for you to efficiently query and retrieve B2B tracking data, provide structured insights into message flow, processing status, and troubleshoot problems.
180
184
181
185
- The table named **AS2TrackRecords** stores AS2 transactions.
182
186
- The table named **EdiTrackRecords** stores X12 and EDIFACT transactions.
183
187
184
-
This table structure provides the capability for you to efficiently query and retrieve B2B tracking data, provide structured insights into message flow, processing status, and troubleshoot problems.
185
-
186
188
> [!NOTE]
187
189
>
188
190
> If you want to [create a tracking store](#manage-with-rest-api) using the Azure Logic Apps REST API,
189
191
> you must first manually create the two tables named **AS2TrackRecords** and **EdiTrackRecords** in your
190
192
> Azure Data Explorer database using specific [B2B tracking table schemas](tracking-table-schemas-standard.md).
191
193
> Your database must also grant **Ingester** permissions to your integration account resource.
192
194
193
-
For more information, see [Tracking table schemas for B2B transactions - Standard workflows](tracking-table-schemas-standard.md).
195
+
For more information, see [Table schemas for tracking B2B transactions - Standard workflows](tracking-table-schemas-standard.md).
194
196
195
197
<aname="manage-with-rest-api"></a>
196
198
@@ -206,8 +208,8 @@ Create a tracking store or update an existing one.
206
208
>
207
209
> In this release, your integration account currently supports only one tracking store.
208
210
> Before you create a tracking store using the Azure Logic Apps REST API, you must first
209
-
> manually create the two tables named **AS2TrackRecords** and **EdiTrackRecords** in your Azure
210
-
> Data Explorer database using specific [B2B tracking table schemas](tracking-table-schemas-standard.md).
211
+
> manually create the two tables named **AS2TrackRecords** and **EdiTrackRecords** in your
212
+
> Azure Data Explorer database using specific [table schemas for tracking B2B transactions](tracking-table-schemas-standard.md).
211
213
> Your database must also grant **Ingester** permissions to your integration account resource.
title: B2B tracking table schemas - Standard workflows
3
-
description: Learn more about the schemas for tracking tables that store B2B transaction data for Standard workflows in Azure Logic Apps.
2
+
title: Table schemas for tracking B2B transactions - Standard workflows
3
+
description: Learn about table schemas to use for tracking B2B transactions data for Standard workflows in Azure Logic Apps.
4
4
services: logic-apps
5
5
ms.topic: how-to
6
6
ms.reviewer: estfan, divswa, pravagar, azla
7
-
ms.date: 02/28/2025
8
-
# As a B2B integration solutions developer, I want to better understand the structures for the tables that store B2B transaction data for Standard workflows in Azure Logic Apps.
7
+
ms.date: 03/07/2025
8
+
# As a B2B integration solutions developer, I want to better understand the table structures used fo storing B2B transaction data for Standard workflows in Azure Logic Apps.
9
9
---
10
10
11
-
# B2B tracking table schemas for Standard workflows in Azure Logic Apps
11
+
# Table schemas for tracking B2B transactions for Standard workflows in Azure Logic Apps
Azure Logic Apps includes built-in tracking that you can enable for parts of your Standard workflow. To help you monitor the successful delivery or receipt, errors, and properties for business-to-business (B2B) messages, this guide helps you better understand the tables that store B2B tracking data for your transactions.
16
16
17
+
> [!NOTE]
18
+
> ### WorkflowRunOperationInfo type Uses a specific JSON schema
19
+
17
20
<aname="as2-table"></a>
18
21
19
22
## AS2 tracking table - AS2TrackRecords
@@ -23,7 +26,7 @@ The Azure Database Explorer table named **AS2TrackRecords** stores all AS2 track
23
26
```kusto
24
27
.create table AS2TrackRecords (
25
28
IntegrationAccountSubscriptionId: string, // Subscription ID for the integration account.
26
-
IntegrationAccountResourceGroup: string, // Resource ID for the integration account.
29
+
IntegrationAccountResourceGroup: string, // Resource group for the integration account.
27
30
IntegrationAccountName: string, // Name for the integration account.
28
31
IntegrationAccountId: string, // ID for the integration account.
29
32
WorkflowRunOperationInfo: dynamic, // Operation information for the workflow run.
@@ -41,13 +44,89 @@ The Azure Database Explorer table named **AS2TrackRecords** stores all AS2 track
41
44
As2To: string, // Name for the AS2 message receiver in the AS2 headers.
42
45
ReceiverPartnerName: string, // Partner name for the AS2 message receiver.
43
46
SenderPartnerName: string, // Partner name for the AS2 message sender.
44
-
MessageId: string, // AS2 message ID in the AS2 message headers.
47
+
MessageId: string, // AS2 message ID.
45
48
OriginalMessageId: string,// Original AS2 message ID.
46
49
CorrelationMessageId: string, // Message ID for correlating AS2 messages with Message Disposition Notifications (MDNs).
47
-
IsMdnExpected: bool // Whether to use the default value, if unknown.
50
+
IsMdnExpected: bool // Whether the Message Dispoition Notification (MDN) is expected.
48
51
)
49
52
```
50
53
54
+
### AS2 MessageProperties type
55
+
56
+
The **MessageProperties** column has a **dynamic** type structure, which uses a different JSON schema based on the tracking record type.
57
+
58
+
#### AS2 message tracking record - MessageProperties schema
59
+
60
+
```json
61
+
{
62
+
"direction": "",
63
+
"messageId": "",
64
+
"dispositionType": "",
65
+
"fileName": "",
66
+
"isMessageFailed": "",
67
+
"isMessageSigned": "",
68
+
"isMessageEncrypted": "",
69
+
"isMessageCompressed": "",
70
+
"correlationMessageId": "",
71
+
"incomingHeaders": {},
72
+
"outgoingHeaders": {},
73
+
"isNrrEnabled": "",
74
+
"isMdnExpected": "",
75
+
"mdnType": ""
76
+
}
77
+
```
78
+
79
+
| Property | Type | Description |
80
+
|----------|------|-------------|
81
+
|**direction**| String | Message flow direction (**`send`** or **`receive`**) |
82
+
|**messageId**| String | AS2 message ID from AS2 message header |
83
+
|**dispositionType**| String | Disposition type for the Message Disposition Notification (MDN) |
84
+
|**fileName**| String | File name from the AS2 message header |
85
+
|**isMessageFailed**| Boolean | Whether the AS2 message failed |
86
+
|**isMessageSigned**| Boolean | Whether the AS2 message was signed |
87
+
|**isMessageEncrypted**| Boolean | Whether the AS2 message was encrypted |
88
+
|**isMessageCompressed**| Boolean | Whether the AS2 message was compressed |
89
+
|**correlationMessageId**| String | Message ID for correlatating AS2 messages with Message Disposition Notifications (MDNs) |
90
+
|**incomingHeaders**| JToken dictionary | Header details for the incoming AS2 message |
91
+
|**outgoingHeaders**| JToken dictionary | Header details for the outgoing AS2 message |
92
+
|**isNrrEnabled**| Boolean | Whether Non-Repudiation of Receipt (NRR) is enabled |
93
+
|**isMdnExpected**| Boolean | Is the Message Disposition Notification (MDN) expected |
94
+
|**mdnType**| Enum | Allowed values: **`NotConfigured`**, **`Sync`**, and **`Async`**|
95
+
96
+
#### AS2 MDN tracking record - MessageProperties schema
97
+
98
+
```json
99
+
{
100
+
"direction": "",
101
+
"messageId": "",
102
+
"originalMessageId": "",
103
+
"dispositionType": "",
104
+
"isMessageFailed": "",
105
+
"isMessageSigned": "",
106
+
"isNrrEnabled": "",
107
+
"statusCode": "",
108
+
"micVerificationStatus""",
109
+
"correlationMessageId": "",
110
+
"incomingHeaders": {},
111
+
"outgoingHeaders": {},
112
+
}
113
+
```
114
+
115
+
| Property | Type | Description |
116
+
|----------|------|-------------|
117
+
|**direction**| String | Message flow direction (**`send`** or **`receive`**) |
118
+
|**messageId**| String | AS2 message ID from AS2 message header |
119
+
|**originalMessageId**| String | Message ID for the original AS2 message |
120
+
|**dispositionType**| String | Disposition type for the Message Disposition Notification (MDN) |
121
+
|**isMessageFailed**| Boolean | Whether the AS2 message failed |
122
+
|**isMessageSigned**| Boolean | Whether the AS2 message was signed |
123
+
|**isNrrEnabled**| Boolean | Whether Non-Repudiation of Receipt (NRR) is enabled |
124
+
|**statusCode**| Enum | Allowed values: **`Accepted`**, **`Rejected`**, and **`AcceptedWithErrors`**|
125
+
|**micVerificationStatus**| Enum | Allowed values: **`NotApplicable`**, **`Succeeded`**, and **`Failed`**|
126
+
|**correlationMessageId**| String | Correlation ID, which is the ID for the original message that has the MDN configured |
127
+
|**incomingHeaders**| JToken dictionary | Header details for the incoming AS2 message |
128
+
|**outgoingHeaders**| JToken dictionary | Header details for the outgoing AS2 message |
129
+
51
130
<aname="x12-table"></a>
52
131
53
132
## X12 tracking table – EdiTrackRecords
@@ -57,15 +136,15 @@ The Azure Database Explorer table named **EdiTrackRecords** stores all X12 track
57
136
```kusto
58
137
.create table EdiTrackRecords (
59
138
IntegrationAccountSubscriptionId: string, // Subscription ID for the integration account.
60
-
IntegrationAccountResourceGroup: string, // Resource ID for the integration account.
139
+
IntegrationAccountResourceGroup: string, // Resource group for the integration account.
61
140
IntegrationAccountName: string, // Name for the integration account.
62
141
IntegrationAccountId: string, // ID for the integration account.
63
142
WorkflowRunOperationInfo: dynamic, // Operation information for the workflow run.
64
143
ClientRequestId: string, // Client request ID.
65
144
EventTime: datetime, // Time of the event.
66
145
Error: dynamic, // Error, if any.
67
146
RecordType: string, // Type of tracking record.
68
-
Direction: string, // Message low direction, which is either 'receive' or 'send'.
147
+
Direction: string, // Message flow direction, which is either 'receive' or 'send'.
69
148
IsMessageFailed: bool, // Whether the message failed.
0 commit comments