Solved
Calculate a string field in one of Custom Actions variable fields
- May 27, 2025
- 2 replies
- 924 views
Hi,
I'm not a developer and I'm trying to write an expression to count the number of a string field nested within string arrays (screenshot). This expression is intended for use in one of the Custom Actions variable fields in Journey. Below is the expression I attempted, along with the error I received: "The expression is invalid : Unexpected usage of the character '('. It seems that you should better use the '}' here."
Expression in question:
listSize(#{ExperiencePlatform.ProfileFieldGroup.profile._ObjectLevel1.ObjectLevel2.ObjectLevel3 [].ObjectLevel4 [].each(currentDataPackField.plan)}
Kindly take note that there can be more than 1 ObjectLevel4 hence more than 1 plan.
Thanks!