Hello @Sukanya Cu ,
Thanks for the question and using MS Q&A platform.
As we understand the ask here is how to pass variables from a parent pipeline to a child pipeline via the Execute Pipeline activity .
You are halfway there! Variables and parameters are not passed automatically from parent to child pipelines, you need to specify them in the execute pipeline activity like shown below. Connecting the Set Variable to Execute pipeline is not mandatory, but helps ensure the variable is set appropriately before trying to pass it (otherwise might not be right value!)
There is one more thing you should be aware of, since you are using Set Variable in a ForEach loop. Activities in one loop can overwrite the values set to variable in another loop. Therefore it would be safer to move the logic from the Set Variable activity to directly inside the Execute pipeline activity.
Please do let me if you have any queries.
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators