コミュニティアチーブメントバーを展開する。

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
解決済み

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 受け入れられたソリューション

Avatar

正解者
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

元の投稿で解決策を見る

3 返信

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

正解者
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