ADF - Capture ForEach paramters and load into SQL Table

PS 396 Reputation points
2022-09-19T03:31:44.987+00:00

Hi All,

Need advice...

I am using WebActivity component in ADF for GET method from an API. This is how my flow looks.

242280-image.png

I am passing two parameters and saving the response from API in the ADLS. later, loading the JSON file into SQL Table along with parameters in the Sink(SQL Table). However, this consumes lot of time as I have close to 1million API calls that I need to make.

I need some advise on how to store the parameters that I am passing through for each loop in my API response so that I can design something like this.

242391-image.png

I would like to capture those parameters and load into my sink. Can someone pls suggest some ideas to avoid having the Copy Activity inside ForEach loop.

TIA!

Env: Synapse SQL

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,599 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 32,026 Reputation points MVP
    2022-09-19T04:09:48.547+00:00

    Hey,
    You can use an array variable and append the For each items using the append variable activity you can save all For each parameters :
    http://datanrg.blogspot.com/2018/10/append-variable-activity-in-azure-data.html

    and then leverage that variable and convert it into string and pass it to Copy activity


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.