Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc:createReply
 
wm.tn.doc:createReply
Creates a reply document for a specified document.
Input Parameters
bizdoc
Object The document for which you want to create a reply document. The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope.
replyTypeId
String (optional) The internal ID for the TN document type to associate with the reply document (if different from the original document). For replyTypeId, specify the unique identifier that Trading Networks generated for the TN document type. This is the value from the TypeID column in the BizDocTypeDef table in the Trading Networks database.
replyDocRelationship
String (optional) Type of relationship you want to create between the original document and the reply document. You can specify a string between 1-80 characters. A relationship is created only if you specify replyDocRelationship.
Output Parameters
reply
Object The reply document. For the structure of reply, see wm.tn.rec:BizDocEnvelope.
Usage Notes
If you are invoking this service from a Java program, in addition to returning reply as an IS document (IData object), the service returns reply as an instance of com.wm.app.tn.doc.BizDocEnvelope.