EDP supports the use of the Handlebars templating language to build HTTP API Templates. In addition to the keywords and namespaces in Handlebars, EDP supports the following custom keywords.
Keyword |
Description |
{{records}} |
Used in the {{#each}} loop, this keyword sets the context to the individual record. |
{{emptyToNull}} |
Automatically transforms empty values to null. |
{{columns}} |
Generates a comma-separated list all of the column headers. |
{{#iff}} {{/iff}} |
An "if" statement with conditions. The format is "<string>" "<operator>" "<string>". It supports the operators:
|
{{#if_eq}} {{/if_eq}} |
"If equal" is another type of if statement with a condition. |
{{completed}} |
Resolves to "true" on the final batch, and "false" on any other batch. Note: When using Generate Preview, this value will only resolve to null. It will not resolve to "true" or "false" until executed in a call. |