B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc:setAttribute
 
wm.tn.doc:setAttribute
Updates, deletes, or adds an attribute value for a document in the BizDocEnvelope in memory.
This service supports attributes of the following data types: String, StringList, Number, NumberList, DateTime, and DateTimeList.
Input Parameters
bizdoc
Object The document for which you want to update, delete, or add an attribute value. The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope.
attribId
String (optional) Internal ID of the attribute to be set.
attribName
String (optional) Name of the attribute to be set.
attribValue
String (optional) New value for the attribute. If you supply a null value, the service deletes any existing value for the attribute. If the attribute is a DATETIME, use the format: yyyy-mm-dd hh:mm:ss.
Output Parameters
None.
Usage Notes
This service does not update the value of the attribute of the BizDocEnvelope saved in the Trading Networks database. To update the database with the values of the attributes in a BizDocEnvelope, use wm.tn.doc:updateAttributes.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release