Filter Assets
This action can be executed as step to filter assets based on the Pimcore Query Language (PQL). It will filter the assets based on the provided query and add the filtered assets to either the job run context or set them as selected elements for the next job step.
Available Context
For more information on context limitations refer to the Available Context section.
Multiselect: No Elements: Assets
Please be aware that the elements will be filtered without taking permissions into account.
Configuration Options
#Filter assets based on PQL
pql_filter: 'parentId = 287'
#Set filtered assets as selected elements
set_as_selected_elements: false
Detailed Configuration Options
pql_filter
: PQL query to filter assets.set_as_selected_elements
(Optional, default:false
): Sets the filtered assets as selected elements for the next job step. Only available using GEE.
Job Run Context
The filtered assets will be added to the job run context with the key filtered_assets
.
Applying the above configuration to the Pimcore demo project will add the filtered assets to the job run context as shown below:
[
0 => [
"subtype" => "image",
"id" => 289,
"type" => "assets"
],
1 => [
"subtype" => "image",
"id" => 292,
"type" => "asset"
],
2 => [
"subtype" => "image",
"id" => 294,
"type" => "asset"
],
]
Examples and further information on PQL
For examples and further information on Pimcore Query Language (PQL), please refer to the Generic Data Index documentation.