How can we use array in the condition and find the same value in the jounrey
Solved! Go to Solution.
Views
Replies
Total Likes
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...
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...
@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}
Views
Replies
Total Likes
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
form where this value is coming form currentDataPackField.directMarketing.sends.value
Views
Replies
Total Likes
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' )