Expand my Community achievements bar.

Never miss an update of the Adobe Journey Optimizer Community Lens! Subscribe now to get the latest updates, insights, and highlights delivered straight to your inbox every time a new edition drops.
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 Advisor

@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 5

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,

@Mohan_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 Advisor

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