I have a Copy Activity in my ADF Pipeline which copies an excel worksheet data to a JSON sink. I am looking for a way to add a custom column that can keep a track of the row number while copying the data. For example,
| Name | Value |
|---|---|
| ABC | 123 |
| DEF | 456 |
| GHI | 789 |
The above should be converted into the below JSON:
[{
"Name": "ABC",
"Value": "123",
"Row Number": 1
},
{
"Name": "DEF",
"Value": "456",
"Row Number": 2
},
{
"Name": "GHI",
"Value": "789",
"Row Number": 3
}]