MessageId property

Read-write. The MessageId to be included in the MQMD of a message when put on a queue. Also the ID to be matched against when getting a message from a queue.

Its initial value is all nulls.

Defined in: MQMessage class

Data Type: String of 24 characters

Syntax: To get: messageid$ = MQMessage.MessageId

To set: MQMessage.MessageId = messageid$

See Message Descriptor properties for more information about when you must use MessageIdHex in place of the MessageId property.