Get the current message ID

Verified
Added by iNTERFACEWARE

Get the Iguana log (unique) message ID for the message currently being processed

Source Code
   local msgId = iguana.messageId()
   
   -- link to the current message ID
   iguana.logInfo(''This is an Informational log entry'', iguana.messageId())
   
   -- include the message ID in the log entry
   iguana.logInfo('This is an Informational log entry'..iguana.messageId())
Description
Get the Iguana log (unique) message ID for the message currently being processed
Usage Details

Use iguana.messageId() to get the unique message ID from Iguana’s internal logging system. This can be used to group messages, or included in logged error/info messages.

How to use the snippet:

  • Paste the code into your script

Note: The iguana.logInfo() API page explains in detail how to use iguana.messageId() for grouping etc.