Skip to main content
Version: Next

Assign Execution Context To Data Objects

This automation action allows you to assign the execution context to data objects. It can be configured to assign the data from previous steps to the data object. It supports assigning data to a single or multiple data objects.

Configuration Options

# (Required) This defines the mapping of the execution context to the data object. 
mapping:
dataObjectFieldName: executionContextKey

# (Optional) This parameter sets the language of the data object.
language: de

Detailed Configuration Options

  • mapping: (Required) This defines the mapping of the execution context to the data object. The dataObjectFieldName is the field name of the data object where the execution context data will be assigned. The executionContextKey is the key in the execution context from where the data will be fetched.
  • language: This optional parameter sets the language of the data object. If not provided, Pimcore's default language will be used.

Structure of the Execution Context

This action uses the execution context to assign data to the data object. The execution context Should be in the following format:

$content[$id_of_the_processed_object][$execution_context_Key] = $value;

This structure allows the action to correctly assign the data from the execution context to the data object.