NextGen Knowledge Center

Variable Maps

Throughout the Message Processing Lifecycle, your channels and messages have access to various maps. Depending on the scope, the map may only be available in the current channel/connector, or may be globally available across your entire system. These variable maps allow you to store a piece of information that can be used later (in a downstream channel, connector, or somewhere else). A common use for these variables is to provide easy drag-and-drop for connector properties. The Destination Mappings list will display all available connector/channel map variables for example. They are also used in other ways, such as populating Custom Metadata Columns.

The following variable maps exist throughout Mirth® Connect:

NameJavaScript VariableGet/Put Shortcut Variable
Response MapresponseMap$r
Connector MapconnectorMap$co
Channel MapchannelMap$c
Source MapsourceMap$s
Global Channel MapglobalChannelMap$gc
Global MapglobalMap$g
Configuration MapconfigurationMap$cfg

The table above also shows the precedence of these maps when referencing them in Velocity or when using the generic lookup function. For additional information, see The Variable Map Lookup Sequence.