Trading Networks 10.7 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc:relateDocuments
 
wm.tn.doc:relateDocuments
Creates a one-way relationship between two documents.
Input Parameters
fromDoc
Object The document the relationship is “from.” The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope.
toDoc
Object The document the relationship is “to.” The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope.
relationship
String A string that describes the type of relationship between the documents. The string can be 1-80 characters.
Output Parameters
updateCount
String The number or documents that the service updated. The following values indicate:
*1 The service established the relationship.
*0 The service did not establish the relationship.
Usage Notes
One of the documents must have been saved to the database before invoking this service. If neither have been saved to the database, this service throws an exception.