Hey There!
I have a custom action which returns payload in the below format (as a contextual attribute)
Views
Replies
Total Likes
Error in parsing PQL expression "context.journey.actions.3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1"...
is caused by the fact that contextual attributes with hyphens and numbers in their keys (like 3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1) cannot be referenced directly in PQL expressions or variable definitions using the dot . notation. This limitation is due to PQL’s identifier syntax—it expects keys not to start with a number or contain hyphens unless bracket notation is used.
To access values for keys containing hyphens, you must use bracket notation. Try referencing your contextual attribute like this: {% let contextVar = context.journey.actions["3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1"] %}
For nested attributes, continue with bracket notation:{% let products = context.journey.actions["3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1"].data.products.products %}
Contextual attributes cannot always be stored as variables if their key naming violates identifier rules .
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies