Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[Segmentation] - Pass custom data to script reference


Level 1


is this possible to pass data from AEM into custom script reference? There is example script in CRX that has two params: val1, val2. I can't figure it out from which place they are taken. As a final result I would be able to pass value into the script which is used there for comparison.

2 Replies


Community Advisor


Can you show us the location off the script, please? Provide the JCR path.


Level 1
Example script is located at: /libs/cq/contexthub/code/kernel/segment-engine/comparison-scripts/comparison-script-template.js