Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.
SOLVED

form a condition inide if the journey

Avatar

Level 4

How can we use array in the condition and find the same value in the jounrey 

1 Accepted Solution

Avatar

Correct answer by
Employee

1) you need to add the array in the Experience platform data source. Reference - https://experienceleague.adobe.com/docs/journey-optimizer/using/configuration/configure-journeys/dat... 

 

2) and then leverage collection management functions to access the array value. Reference - https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanc...

 

View solution in original post

5 Replies

Avatar

Correct answer by
Employee

1) you need to add the array in the Experience platform data source. Reference - https://experienceleague.adobe.com/docs/journey-optimizer/using/configuration/configure-journeys/dat... 

 

2) and then leverage collection management functions to access the array value. Reference - https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanc...

 

Avatar

Level 4

@dugganab 
but every time index is coming as at(0) only but we need to iterate it 

#{ExperiencePlatform.RxCAGM_event.experienceevent.at(0)._abc_partner.individualId}

Avatar

Employee

You won't be able to iterate if it is an array of strings / integers etc., you will have to access the respective index position.

 

If it is an array of objects, you can filter by referring to example 3 in the documentation shared in the earlier thread

 

dugganab_1-1703158027812.png

 

 

Avatar

Level 4

form where this value is coming form currentDataPackField.directMarketing.sends.value

Avatar

Employee

From the example shared, it is from an experience event.

 

In your case, if you have an array of objects, you can refer to the attributes of the object (referred as zzz) as a filter using the syntax, (say for example, currentDataPackField.zzz== 'yyy' )