Need Help: How to Select Specific Object from Array for Personalization in AJO | Community
Skip to main content
Level 2
July 9, 2025
Solved

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

  • July 9, 2025
  • 1 reply
  • 417 views

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.

Best answer by Mohan_Dugganab

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 reply

Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
July 9, 2025

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