Reference Response Outputs in Template-Driven Documents

Template-driven documents include DRELClosed Data Reference Expression Language (DREL) is used to get form data and metadata and add it to a string, such as dates, usernames, or answers to questions in forms., Handlebars, and FreeMarker. This topic describes how to format the %o DREL reference for each type of template-driven document.

Available on the Advanced and Enterprise tiers:

Essentials
Advanced
Enterprise

Use the conventions described in the following table to reference response outputs in DREL, Handlebars, and FreeMarker templates. In all cases:

Template type Format
DREL
%o[Destination Unique ID][Key]
FreeMarker
${outputs.<Destination Unique ID>.<Key>}
Handlebars

{{outputs.<Destination Unique ID>.<Key>}}

Note:When the response key of a key-value pair contains a period (.), you must enclose the key within square brackets ([ ]). For example, to reference the body.id value of an HTTP destination, use the format:

{{outputs.<Destination Unique ID>.[body.id]}}

Info:Because responses vary with each third-party system, you might want to check the response output stored by a specific Data Destination. The topic View Destination Response Outputs in the Web Portal describes how to find out which key-value pairsClosed A key-value pair is a set of two related data elements. The first element identifies the type of data, such as "name". The second element identifies the actual value, such as "Elizabeth". a Data Destination stored after it executed.

Related Links