Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

[Segmentation] - Pass custom data to script reference

Avatar

Level 1

Hello,

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

Avatar

Community Advisor and Adobe Champion

@MikolajBudaSii,

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

Avatar

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