Expand my Community achievements bar.

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.
SOLVED

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 Accepted Solution

Avatar

Correct answer by
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

View solution in original post

1 Reply

Avatar

Correct answer by
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