AMQP Connector Guide > AMQP Connections > Message Payload
  

Message Payload

The event received by the process is an object with a payload that represents the message data (the AMQP message).
Similar to other connectors, the message payload for AMQP might be made accessible to the process as a process object of type $any.
For example:
[
{"firstName":"cindy", "lastName": "lou", "department": "qa", "id":1},
{"firstName":"billy", "lastName": "joe", "department": "dev", "id":12}
]
or in XML, you can write it as follows:
<list>
<employee>
<firstName>cindy</firstName>
<lastName>lou</lastName>
<department>qa</department>
<id>1</id>
</employee>
<employee>
<firstName>billy</firstName>
<lastName>joe</lastName>
<department>dev</department>
<id>12</id>
</employee>
</list>
If the payload is XML, the field name is the element name of the list, for example, 'employee'.
If the payload is JSON, the array does not have a field name as defined by the payload and you can specify an Object Field Name for the Event Source so that the implicit object field name can be set.