I am developing an ADF pipeline that looks through a set of ADLS directories and extracting the name and last modified dates for each folder. I have written the extracted information to a "Set Variable" activity, my major issue now is how to pass these arrays into an Azure SQL table. I have tried using a stored procedure, but it does not write any records, I also tried copy activity but I wasn't sure how to configure the parameters.
Here is what I have tried:
"Set variable1" collects all the records appended by the inner Append variable activity.
The output in the set variable is like this:
{
"name": "allFiles",
"value": [
"FileName,LastUpdated",
"final_directory1,2024-11-15T10:50:23+00:00",
"all_entry_levels,2025-07-11T20:58:34+00:00",
"final_directory,2025-07-11T21:01:38+00:00",
"groceries_list,2025-07-11T21:04:44+00:00",
"all_onetime_records,2025-07-11T21:04:58+00:00",
"industries_list,2025-07-11T21:05:11+00:00",
"SNAPSHOT_last,2025-07-11T21:05:25+00:00",
"LATEST_information_farming,2025-07-11T21:05:38+00:00"
]
}
For the copy activity, I created a dummy csv file and pointed the dataset to it, then mapped an additional column to the set variable
At this point, I have no idea what to do, I know I need to map the columns but I am a bit confused as to how.
Any help would be really appreciated, either with copy activity or stored procedure activity.




