Skip to main content
Level 2
Oct 11, 2023 2:37 PM UTC
Solved

Collection Management in AJO

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mohan_Dugganab
Mohan_DugganabAccepted solution
Adobe Employee
Dec 18, 2023 11:07 AM UTC

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

3 replies

Silvio6
Level 6
Oct 17, 2023 10:39 PM UTC

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.

Translate
Sukrity_Wadhwa
Level 4
Dec 18, 2023 10:24 AM UTC
Sukrity Wadhwa
Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
Dec 18, 2023 11:07 AM UTC

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

Translate