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:createNewEnvelope
 
wm.tn.doc:createNewEnvelope
Creates a new BizDocEnvelope that contains no document content.
Input Parameters
typeId
String The internal ID for the type of the document you want to create. For typeId, specify the unique identifier that Trading Networks generated for the TN document type. This is the value returned by the getId method of the BizDocType class.
senderId
String (optional) The internal identifier for the sender of the new document. Trading Networks assigns this unique ID to the partner when the profile for the partner was added to your network.
receiverId
String (optional) The internal identifier for the receiver of the new document. Trading Networks assigns this unique ID to the partner when the profile for the partner was added to your network.
documentId
String (optional) The document ID of the document. This is an identifier for the document in some external identifying scheme.
groupId
String (optional) An identifier for the group to which this new document belongs.
conversationId
String (optional) An identifier for the conversation to which this new document belongs.
Output Parameters
bizdoc
Document The new bizdoc envelope. For the structure of bizdoc, see wm.tn.rec:BizDocEnvelope.
Usage Notes
If you are invoking this service from a Java program, in addition to returning bizdoc as an IS document (IData object), the service returns bizdoc as an instance of com.wm.app.tn.doc.BizDocEnvelope.