按参数动态获取查找输出属性 [英] Dynamically get lookup output property by parameter
问题描述
无论如何通过使用已解析的参数值(名称)来动态设置所需的输出字段名称。
例如。 activity('lup_CRM')。output.firstRow ['@ {pipeline()。parameters.SourceAttribute}']
参数: SourceAttribute(string)=" accounts"
这应显示: activity('lup_CRM')。output.firstRow ['accountid']
我认为没有直接的方法可以做到这一点。但是,您可以将自定义活动与Lookup活动结合使用来解析结果并在进一步的活动中使用它。
要了解有关自定义活动的更多信息,请参阅:
https://docs.microsoft.com/en-us/azure/data-factory/transform-data-using-dotnet-custom-activity
希望这个帮助
Is there anyway to dynamically set the output field name required by using a parsed parameter value (name).
Eg. activity('lup_CRM').output.firstRow['@{pipeline().parameters.SourceAttribute}']
Parameter: SourceAttribute (string) = "accounted"
This should show : activity('lup_CRM').output.firstRow['accountid']
Hi,
I don't think there's a direct way to do this. However you can use a custom activity in conjunction with your Lookup activity to parse the result and use it in further activities.
To read more about custom activities, please refer :
https://docs.microsoft.com/en-us/azure/data-factory/transform-data-using-dotnet-custom-activity
Hope this helps.
这篇关于按参数动态获取查找输出属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!