This blog post contains a JavaScript cheat-sheet for working with the Conscia DX Engine.
Update 15.Dec.2025: After years of frustration with WordPress, I am finally abandoning this blog. The content will likely stay here for some time, but new content will appear here:
| 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 |