Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Application Integration | Mapping Data

Hello 

Can i use data mapper task to map data with conditions ?

Is using java script task for mapping impact the performance or has any cons ?

Solved Solved
0 1 157
1 ACCEPTED SOLUTION

Hi @melfeqy03 ,
The data mapper task doesn't support it but it could be done via:

Data transformer Task  
eg: 

{result: if n === 0 then 1 else 2}

OR

JavaScript Task

There can be latency implications when dealing with huge dataset in JavaScript Task

View solution in original post

1 REPLY 1

Hi @melfeqy03 ,
The data mapper task doesn't support it but it could be done via:

Data transformer Task  
eg: 

{result: if n === 0 then 1 else 2}

OR

JavaScript Task

There can be latency implications when dealing with huge dataset in JavaScript Task

Top Labels in this Space