내 커뮤니티 업적 표시줄을 확대합니다.

Join Adobe Journey Optimizer product experts for a live Ask Me Anything on October 15th at 8 AM PT about Expanding Your Mobile Reach with RCS & WhatsApp in AJO!
해결됨

Need Help: How to Select Specific Object from Array for Personalization in AJO

Avatar

Level 2

Hi Community,

I’m working on a POC in Adobe Journey Optimizer (AJO) where each profile has an object array containing multiple accounts.

My requirement:
I need to select and display only one qualifying loan in the message (e.g., the loan where status = true).

I’m trying to use helper functions like filter and head for this, but I’m not sure of the correct syntax or best practice.

Can someone guide me on:

  1. How to select and display only one matching object from the array in AJO content?

  2. Can journey conditions also check inside arrays, or is this only possible in message personalization?

I’ve seen the documentation on collections and helper functions but still need clarity on how to implement this.

Any help or guidance would be really appreciated!

Thank you.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

You can look at some of the examples in the playground here https://experienceleague.adobe.com/en/apps/journey-optimizer/ajo-personalization?lang=en# for displaying it in the message content and apply conditional logic within the loanDetailsObject where activeLoan = true and simultaneously, increment a counter variable and exit the loop as soon as a match is found.

 

Collection management functions can be used in the journey conditions to apply the filtering logic on the following lines 

...loanDetailsObject.first(currentDataPackField.activeLoan == true).loanDetailsObjectAttribute

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Employee Advisor

You can look at some of the examples in the playground here https://experienceleague.adobe.com/en/apps/journey-optimizer/ajo-personalization?lang=en# for displaying it in the message content and apply conditional logic within the loanDetailsObject where activeLoan = true and simultaneously, increment a counter variable and exit the loop as soon as a match is found.

 

Collection management functions can be used in the journey conditions to apply the filtering logic on the following lines 

...loanDetailsObject.first(currentDataPackField.activeLoan == true).loanDetailsObjectAttribute