azureazure-data-factorygoogle-cloud-dataflow

ADF Data flow - data map or translate


Using a data factory, I have a data flow that reads the data from the Rest endpoint A field comes int he form

{
  "Field1":2007,
   "Field2":2005
}

I need to convert the values to a word according to specific definition:

2005 = "AAA"
2007 = "BBB"

So that in the sink it would produce the result:

{
  "Field1":"BBB",
  "Field2":"AAA"
}

These fields are NOT required, so they may or may not apear in the payload returned from the Rest service.


What transformation should I use ?
The dictionary is small - 2-3 values, so anything manual is acceptable.


Solution