NextGen Knowledge Center

Message Variables

There are a wide variety of different JavaScript contexts throughout Mirth® Connect, and each have various variables automatically available from the local scope. Here are some common examples:

  • message: A string that represents a raw inbound message in native format.
  • msg: An XML object that represents a transformed version of the inbound message.
  • tmp: An XML object that represents an outbound message template; available only if an outbound template is defined.
  • connectorMessage: An instance of the ImmutableConnectorMessage Java class; an internal representation of the message and its attributes.