Export (0) Print
Expand All

Example: Delete Action [AX 2012]

Updated: June 21, 2012

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

This topic describes sample inbound and outbound messages for the delete action in Application Integration Framework (AIF) document services. An inbound delete action message can specify one or more records to be deleted. After the inbound message is processed, AIF generates a single outbound message that has an almost empty <Body> tag section.

The following inbound delete message specifies that one record is deleted from the SalesTable table. To enforce referential integrity, the system might also delete records from the child table SalesLine. Line breaks have been added for readability.

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns = "http://schemas.microsoft.com/

  <MessageParts xmlns = "http://schemas.microsoft.com/
   <EntityKeyList xmlns = "http://schemas.microsoft.com/

    <EntityKey xmlns = "http://schemas.microsoft.com/


The sample XML contains no tags that are specific to this service or delete action.

The outbound delete message has an almost empty <Body> section. The following outbound message is generated from the previous inbound message.

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns = "http://schemas.microsoft.com/dynamics/2011/01/documents/Message">
  <MessageParts xmlns = "http://schemas.microsoft.com/dynamics/2011/01/documents/Message">
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft