Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | MIME Folder | Summary of Elements in this Folder | pub.mime:getNumParts
 
pub.mime:getNumParts
WmPublic. Returns the number of body parts in the specified MIME object.
Input Parameters
mimeData
Document MIME object whose parts you want to count. (This IData object is produced by pub.mime:createMimeData.)
Output Parameters
numParts
String The number of body parts in the MIME object.
Usage Notes
This service operates on the MIME object (mimeData) produced by createMimeData.
For general information about MIME messages and using the MIME services, see the MIME-S/MIME Developer’s Guide.
See Also
pub.mime:createMimeData
pub.mime:getBodyPartContent
pub.mime:addBodyPart
Examples
For examples of how to use this service, see the following service in the certified samples area of the Knowledge Center on the Empower Product Support Website https://empower.softwareag.com.
samples.mime:extract_MultipartMIME