KB Article #65906
copy all attributes and setDocumentAttribute - how do these functions work together
Problem
Resolution
copy all attributes and setDocumentAttribute - how do these functions work together
Resolution
dml function setDocumentAttribute is executed first, associating attributes to the specified business document instance.
at the end copy all attributes set the attributes to each output message. if some attributes are already present they are not overwritten