I am new to Azure Data Factory. The requirement that I am working on is to read records from Azure SQL database and send those records in JSON to some HTTP API (external).
So, I am using a Lookup Activity to read records from SQL table and then using forEach activity to loop through them and pass each record to HTTP API (records POSTed as request body) via Web activity. This is working fine. Please note that API accepts only one record in the body as it doesn't support array of records in a single call.
But before passing the records to HTTP API, for each record I have to generate some UUID which should be unique for all the records and pass it as a Header value in HTTP POST request. Once the API response is successful, I have to insert that corresponding UUID, which was generated and passed to the corresponding request, to that SQL database table.
I am facing below issues:
- Reading SQL table data from Lookup is not good as it supports only 5000 rows whereas table that I am reading has more than 100k records. So how should I read the data and pass to forEach activity?
- How to generate UUID value for each record that I am reading from the table? Need to make sure that if I have 100k records, I must generate 100k unique values keeping in mind parallel execution of forEach activity (using batch count).
- How do I pass that UUID as a header value to each request in the Web activity?
- If API response if successful, how do I retrieve the UUID value for that corresponding request and insert into the SQL table.






