Data Prep on arrays value | Community
Skip to main content
Level 4
August 25, 2024
Solved

Data Prep on arrays value

  • August 25, 2024
  • 2 replies
  • 689 views

is it possible to do logic on every field of an array in dataprep? e.g. iif(xdm.eventList[*].name == '2000', 1, 2)? it gives me arror, what is the right way? thanks

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DavidRoss91

@nick_2024 

I don't believe you are able to use the syntax you are providing 'iif'. Check this documentation below and see if this helps.

https://experienceleague.adobe.com/en/docs/experience-platform/data-prep/functions#special-operations

2 replies

DavidRoss91
Community Advisor
DavidRoss91Community AdvisorAccepted solution
Community Advisor
August 25, 2024

@nick_2024 

I don't believe you are able to use the syntax you are providing 'iif'. Check this documentation below and see if this helps.

https://experienceleague.adobe.com/en/docs/experience-platform/data-prep/functions#special-operations

brekrut
Adobe Employee
Adobe Employee
August 26, 2024

@nick_2024 

 

can you please help clarify more as to what is your goal with the the data prep function?