Microsoft Dynamics AX 4
View document history

Documents that are exchanged using the Application Integration Framework (AIF) reflect data in the Microsoft Dynamics AX database, such as, a purchase order. To exchange documents and data with trading partners and other applications, the AIF creates a message, which couples header information with the document payload.

You can view document and message information on the form.

  • If you select Message in the Display by field, you see information about the related action, the source and destination endpoints, and the date and time that the log entry was created.
  • If you select Document in the Display by field, in addition to the information above, you also see information about the form name and the entity of the underlying document.

Information about messages and document history are organized by action for each endpoint. Set the parameters for logging when you configure endpoint action policies. For more information, see Configure endpoint action policies.

View general document history

  1. Click Basic > Periodic > Application Integration Framework > .
  2. In the Display by field, you can filter the display by selecting either Message or Document.
    • When you filter by Message, you see the following information about the message: the action, the source and destination endpoints, and the date and time of the message transfer.
    • When you filter by Document, in addition to the items above, you also see the form name and entity key for the document.
  3. Click the General tab to view the Message ID field.
  4. Click the Details tab to view the following information:
    • The message direction (inbound or outbound)
    • The pipeline identification (if any)
    • User information for the endpoint (the Microsoft Dynamics AX user associated with the endpoint) and the submitting user. This is the user associated with the process that submitted the message (either the Microsoft Dynamics AX user that submitted the message for the source endpoint, or a trusted intermediary).
      For more information, see Configure an endpoint.
    • For outbound documents sent in response to read requests, the Request message ID field shows the message identification for the original request.
    • Processing details including the Channel, the Adapter, and the Transport address used in the exchange.
  5. Click Correlation to view the documents in the database that correspond to the message.
  6. Click Document logs to view the raw XML for each version of the document as it is transformed by each of the components in the pipeline.
  7. Click Clear document XML to clear all or some of the XML for any of the versions of the document that currently exist in the system.
View the data in a document for a message

  1. Click Basic > Periodic > Application Integration Framework > .
  2. In the Display by field, filter by Message.
  3. Select a message and click Correlation.
  4. On the form, view the form name, table name, and entity key for the document contained in the message you selected. You can also view a record for each of the numbered versions of the document and the related processing steps.
  5. Click View to see the data displayed in the default form for that document.
Delete a message

When you delete a message on the form, you delete it from the AifMessageLog table.

  1. Click Basic > Periodic > Application Integration Framework > .
  2. In the Display by field, filter by Message.
  3. Select a message and click Correlation.
  4. Press ALT+F9 to delete the record.
Delete the XML for a document

  1. Click Basic > Periodic > Application Integration Framework > .
  2. In the Display by field, filter by Document.
  3. Select a document.
  4. Click Clear document XML.
  5. To clear all the XML document images in the system, click Clear all versions.
  6. To clear all versions of the XML document except the version closest to the local endpoint, click Clear interim versions.
    • For outbound documents, this clears all versions except the highest-numbered version.
    • For inbound documents, this clears all versions except the first one.
See Also

Using the Application Integration Framework (AIF) to integrate Microsoft Dynamics AX with external software systems
Viewing the document log
Configure endpoint action policies

Page view tracker