Changed field attribute
A Boolean value can be set to 1 (True) in outbound XML messages to indicate that the value in the field is changed. The changed attribute is not set in XML generated by the data export feature.
The changed attribute is set in outbound XML messages only when the transaction satisfies all of the following conditions:
- An outbound, event-based transaction creates the message.
- The Change action attribute or the Replace action attribute is set on the primary object.
- The sending object structure has the same parent-child object relationship as the receiving application.
In the following example, the Replace action attribute is set for the parent object and the changed attribute is set to 1 for the ADDRESSLINE field.
<MXPERSON>
<PERSON action="Replace">
<PERSONID>123</PERSONID>
<ADDRESSLINE1 changed="1" >1 Main Street</ADDRESSLINE1>
For general ledger (GL) type fields, the changed attribute is always set on the name element, which is GLDEBITACCT in the following example:
<GLDEBITACCT changed="1">
<VALUE>6600-800-SAF</VALUE>
<GLCOMP glorder="0">6600</GLCOMP>
<GLCOMP glorder="1">800</GLCOMP>
<GLCOMP glorder="2">SAF</GLCOMP>
</GLDEBITACCT>