How to have a IF-THEN-ELSE condition in the UI mapping about datastream
Hi all,
in this interface in AEPabout datastream mapping:

I'm trying to have a IF THEN ELSE condition. My goal is to have the value of data.pageUrl mapped to prop5 only if xdm.eventType = web.webPageDetails.pageViews
So I created a calculated field with the condition
iif(${xdm.eventType}.equals("web.webPageDetails.pageViews"),${data.pageUrl},nullify())
But the output is not working as expected: not only the field mapped (prop5) is null, multiple others attributes also inherit of this. They are empty.
So I try by adapting the function:
iif(${xdm.eventType}.equals("web.webPageDetails.pageViews"),${data.pageUrl},"")
iif(${xdm.eventType}.equals("web.webPageDetails.pageViews"),${data.pageUrl},null)
iif(${xdm.eventType} == "web.webPageDetails.pageViews",${data.pageUrl},nullify())
Do you have any idea of the reason of this? According to the doc, it should only impact the target field....
Does one of you also need to play with a if-then-else condition?
Thanks in advance
Robin