Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.
SOLVED

Collection Management in AJO

Avatar

Level 2

I am getting the below error while trying to iterate a collection attribute(of individual schema) in AJO within condition activity.

Can anyone please help with the correct solution ?

 

This is my expression:

count(#{ExperiencePlatform.ProfileFieldGroup.profile._publicisglobalemeaptrsd.coverageDetails.all(currentDataPackField.coverageStartDate == @{Enrollment_Event._publicisglobalemeaptrsd.planCoverageDetails.planEffectiveDate}).memberID}) > 0

ngd_11_1-1697034972677.png

 

1 Accepted Solution

Avatar

Correct answer by
Employee

@ngd_11 Kindly check if coverageStartDate and memberID attributes are available within the coverageDetails object array and ticked in the profile field group

View solution in original post

3 Replies

Avatar

Level 3

try this 

 

count([#{ExperiencePlatform.ProfileFieldGroup.profile._publicisglobalemeaptrsd.coverageDetails.all(currentDataPackField.coverageStartDate == @{Enrollment_Event._publicisglobalemeaptrsd.planCoverageDetails.planEffectiveDate}).memberID}]) > 0

 

adding [] as it works as a list.

Avatar

Administrator

Hi @ngd_11,

@dugganab's reply here might help you with your query: https://experienceleaguecommunities.adobe.com/t5/journey-optimizer-questions/iterating-array-object-... 

 

Let us know in case you still need help.

 

Thanks!



Sukrity Wadhwa

Avatar

Correct answer by
Employee

@ngd_11 Kindly check if coverageStartDate and memberID attributes are available within the coverageDetails object array and ticked in the profile field group