There is a variable in ADF that holds the below value.
@json(concat('{','"S.No":',variables('counter'),',"Input Table":"Input TblName","Output Table":"[Tbl1, tbl2, Tbl3]", "Status":"Successful"}'))
I pass this variable to a logic app using Web activity and use ‘Create HTML Table’ to convert this json to a table.
Apparently, the below is what I will get if I do so
SNo | Input Table | Output Table | Status |
---|---|---|---|
1 | Input Table Name | [Tbl1, tbl2, Tbl3] | Successful |
But I want it to be displayed as below.
SNo | Input Table | Output Table | Status |
---|---|---|---|
1 | Input Table Name | Tbl1 | Successful |
2 | Input Table Name | tbl2 | Successful |
3 | Input Table Name | Tbl3 | Successful |
Is there any way to achieve this is ADF pipeline expression builder
2
Answers
If the variable counter works for the tables naming you can do the following:
If not you will need to have a list of JSON objects like this:
You can customize the JSON in
Logic Apps
itself using below design and process:Input:
Design:
Then:
Output:
Codeview to Replicate the same: