Using context variables for custom email header values

The mail headers can also be defined as a JSON directly in a Process Flow using context variables. When the mail activity is executed, the value for the specific header is picked up from the specified context variable in the Process Flow.

Here are the steps to use custom email headers in a Process Flow.

  1. Define a Context Variable.

    The value for this variable will be the custom email header in JSON format, for example, {“Priority”:”1”, “Importance”:”High”}.
  2. Enter $$contextVarName$$ as the Header Value of an activity (Mail Notification, and Mail Target). Here, contextVarName is the name of the context variable. Ensure that you put the correct name of the context variable in the Header Value field.
You can use this variable in Templates, Mail Notifications, and Mail Targets activities.