Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : getMessagePartByID function
 

getMessagePartByID function

Retrieves a message part corresponding to the given contentID.

Syntax

FUNCTION getMessagePartByID RETURNS CHARACTER
(INPUT contentID AS INTEGER, OUTPUT messagePartH AS HANDLE).

Applies to

Message objects

Notes

*When you use the same handle variable to retrieve multiple message parts, after each retrieval, call deleteMessageprocedure on the handle variable to free the message part.
*The getMessagePartByID function returns the content-type of the message. You can use it to identify the message type of the message part.

See also

createMultipartMessage procedure , addBytesPart procedure, addMessagePart procedure , addTextPart procedure , isMessagePart function, getContentType, getPartCount function, getMessagePartByIndex function, getTextPartByIDfunction, writeBytesFromRaw procedure, readBytesToRaw procedure, setMemptr procedure, getMemptr function
For more information, see the MultipartMessage and the MultiPartMessage example.