Forum Discussion
How can I run multiple instances of all the values going in the FOREACH simultaneously?
Ishank22 you can use the ForEach activity to run all the values the Lookup widget passes simultaneously.
- Create a Linked Service and Dataset.
- Create a parameter of relativeURL with respective values.
- Read the data by the Lookup activity, and use the code below to iterate over the values inside the ForEach activity using their indexes.
@range(0,length(pipeline().parameters.relativeURL))Unfortunately, nested loops are not allowed in Azure Data Factory.
You can learn more at
https://learn.microsoft.com/en-us/azure/data-factory/control-flow-for-each-activity
Let me know if this works for you. @ me in replies, or I'll lose your thread!!!
Note:
- Ishank22Jan 22, 2024Copper Contributor
BabatundeDallas - Thanks for your input, could you point to a demo/video where this has been achieved?
- BabatundeDallasJan 22, 2024Brass Contributor
Ishank22 here you go https://www.youtube.com/watch?v=FjC2da9IOUA
If my answers help arrive at a solution? Give it a kudos by clicking the LikesBest Regards,Dallas.