-Conscia DX Engine JavaScript Cheat Sheet

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:

ScriptExplanation
secret(key)Retrieve the value of a secret.
processHandlebars(template, values)Process a Handle bars template.
componentResponse(key)Access the response of the Component.
dataImplicitly available to Data Transformation Scripts.
body, requestBody, engineResponseAvailable in Listener definitions.
componentExtras(key)Properties of the Component, such as Experience Rules and Attributes.
responseAvailable in Response Transformation and Context Field Enrichment.
contextField(key)Retrieve a Context value.
commerceTools.generateToken()Generate Commercetools API Token.
componentStatus(key)PROCESSING
EXECUTING
SKIPPED
WAITING_FOR_COMPONENT_DEPENDENCIES VALID
FAILED

Leave a comment