如何从Master Execute Pipeline Activity获取pipelineRunID [英] How to get pipelineRunID from Master Execute Pipeline Activity

查看:130
本文介绍了如何从Master Execute Pipeline Activity获取pipelineRunID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Master Pipeline,可以执行许多Child管道活动。 管道执行后,我需要获取已完成的活动的pipelineRunId。 在这样做的过程中,我尝试了@activity('Execute Pipeline1')。output.pipelineRunId
但它出错了:" T 表达式'activity('执行Pipeline1')。output.pipelineRunId'不能
被评估,因为无法选择属性'pipelineRunId'。 "String"类型的值不支持属性选择。
"

I have a Master Pipeline that executes a number of Child pipeline activities.  After a pipeline is executed I need to get the pipelineRunId for the activity that completed.  In doing so, I have tried @activity('Execute Pipeline1').output.pipelineRunId but it errors with: "The expression 'activity('Execute Pipeline1').output.pipelineRunId' cannot be evaluated because property 'pipelineRunId' cannot be selected. Property selection is not supported on values of type 'String'."

唯一不会导致错误的是使用"@activity('Execute Pipeline1')。"output"但这只是将JSON值放入字符串中。 我怎样才能获得pipelineRunID?

The only thing that doesn't cause an error is using "@activity('Execute Pipeline1').output" but that simply puts a JSON value into a string.  How can I get just the pipelineRunID?

推荐答案

嗨FrankMn,

如果你想使用普遍执行的管道的runId,它将如下所示:

@ activity('ExecutePipelineActivityName')。output.pipeline.runId

执行管道活动只是另一个具有输出的活动可以被其他活动捕获。  https ://docs.microsoft.com/en-us/azure/data-factory/control-flow-execute-pipeline-activity#type-properties

希望这会有所帮助。


这篇关于如何从Master Execute Pipeline Activity获取pipelineRunID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆