Skip to main content
Version: 2024.2

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 the job run context.

caution

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'

Detailed Configuration Options

  • pql_filter: PQL query to filter assets.

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.