Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a pipeline that has one job: use a Web activity to get an Access Token to be used in other Web activities. Those other web activities in other pipelines so to simplify the design, I want to call the first pipeline from within the second (and many other) pipeline(s). So in the first pipeline, I have a task that sets the Pipeline return value, and for the Value, I put in the dynamic content just as I would if I was setting a Pipeline variable: @activity('Request an Access Token').output.access_token
Note that the dynamic content expression yields the proper value if it is used to set a pipeline varialbe, but when used to set a return code, the result is simple the literal expression of "@activity('Request an Access Token').output.access_token".
Question, how do I set a pipeline return value using dynamic content?
Proud to be a Super User! | |
Solved! Go to Solution.
Going to take a wild guess here.
Have you changed the type of the pipeline return value to 'Expression' instead of 'string'?
I did a simple 2 pipeline workflow, the first calls the second and sets a variable based on the return value from the second. (the second pipeline just has a Get Metadata step and outputs that as its return value.
Inner pipeline - you've seen the Set Variable in the picture above.
Outer pipeline
Outer set variable
And the audit result
If this helps, please consider Accepting as a Solution to help others find it more easily.
Going to take a wild guess here.
Have you changed the type of the pipeline return value to 'Expression' instead of 'string'?
I did a simple 2 pipeline workflow, the first calls the second and sets a variable based on the return value from the second. (the second pipeline just has a Get Metadata step and outputs that as its return value.
Inner pipeline - you've seen the Set Variable in the picture above.
Outer pipeline
Outer set variable
And the audit result
If this helps, please consider Accepting as a Solution to help others find it more easily.
Thanks, while I have not tried it yet, I'm 99% sure that is what I missed.
Thanks!
Proud to be a Super User! | |