This blog post contains a JavaScript cheat-sheet for working with the Conscia DX Engine.
Script | Explanation |
secret(key) | Retrieve the value of a secret. |
processHandlebars(template, values) | Process a Handle bars template. |
componentResponse(key) | Access the response of the Component. |
data | Implicitly available to Data Transformation Scripts. |
body , requestBody , engineResponse | Available in Listener definitions. |
componentExtras(key) | Properties of the Component, such as Experience Rules and Attributes. |
response | Available in Response Transformation and Context Field Enrichment. |
contextField(key) | Retrieve a Context value. |
commerceTools.generateToken() | Generate Commercetools API Token. |
componentStatus(key) | PROCESSING |