A simple example is setting a target application date. One system may split the date into two unique segments - Month (MMMM) and Year (FYYY) while another may combine into a single string (MMM-YYYY). Rather than maintain three unique variables, Handlebars provide a way to create the varying formats required as an Output that can be used as an Input in a subsequent Command.

In this example, we are utilizing the Handlebars BizApp -> Render Text Template Command to create three variables based on the System Date and Time that the Chain is run. The Output of these Commands will be used to drive various subsequent processes such as running a calculation to clear data and running a data load process.

Step 1: Create Handlebar Command

The variable output that will be used in later Commands is specified in the Template. In this example, it combines values from the Variables section called Month and Year. Each Variable is wrapped in double curly braces: {{ }}. The value associated with the Month and year variables are derived from the system date and time.

Use date variable transformation to set the needed formats.

Additional Handlebar Commands are added to create the Month Name and Fiscal Year variables.

Step 2: Utilize the Variables

Assign the Handlebars output to a Command parameter.

Step 3: Review Results

While this example illustrates how Handlebars can be used to create variables based on the system date and time, they can also be extended to extract values from a JSON array.

Handlebars are an extremely powerful way to enhance an integration and ensure that variables are dynamic and reusable across the Chain.

Did this answer your question?