Iterating Through azure SQL table in Azure Data Factory

雨燕双飞 提交于 2019-12-11 04:44:39

问题


I'm using ADF 2 and trying to grapple with the web activity.

The tasks are.

Copy file from blob storage and put the data in an azure SQL database Iterate through the data and use a PUT call to a REST API to update the data

Okay so I can get the data in the table no problem. I can also make the call using a Web activity to the the API and put some hard coded data there.

But I've been trying to use a For Each to iterate through the table I have and call the web activity to pass that data to the API

This is where I'm stuck. I'm New to data factory and been through all their standard help information but not getting any where.

Any help is appreciated


回答1:


I think you need to drive the foreach via a SQL lookup task that populates a data set and then call the activity for each row:

here are some posts to get you started: https://docs.microsoft.com/en-us/azure/data-factory/control-flow-for-each-activity

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-lookup-activity

replace the copy activity with the web call in the tutorial below: https://docs.microsoft.com/en-us/azure/data-factory/tutorial-bulk-copy-portal



来源:https://stackoverflow.com/questions/48519589/iterating-through-azure-sql-table-in-azure-data-factory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!