Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Mime Folder | Summary of Elements in this Folder | wm.tn.mime:addMimeHeader
 
wm.tn.mime:addMimeHeader
Adds one or more header fields to a specified MIME object.
Input Parameters
mimeData
Object The MIME object to which to add the header fields.
mimeHeader
Document (optional) The header fields to add to the MIME object. Key names represent the names of the header fields. The values of the keys represent the values of the header fields.
For example, if you want to add the following header fields:
X-Doctype: RFQ
X-Severity: 10
You would set the value of the keys of the mimeHeader as follows:
*Value of key X-Doctype as RFQ
*Value of key X-Severity as 10
Be aware that the wm.tn.mime:writeToStream service automatically inserts the following MIME headers when it generates the MIME message:
Message-ID
MIME-Version
If you set these values in mimeHeader, the wm.tn.mime:writeToStream service overwrites the settings at run time.
Output Parameters
mimeData
Object The MIME object with the added header.
Usage Notes
This service is not compatible with those in the pub.mime folder. The MIME objects that the pub.mime:createMimeData service creates will not work with this service.