[英]Logic Apps For Each
I am try to utilise the For Each object in logic apps and I am not sure if this is possible: 我尝试在逻辑应用程序中使用For Each对象,但不确定是否可行:
Step 1 - SQL Stored Procedure is executed returning a number of rows 第1步-执行SQL存储过程,返回若干行
Step 2 - For Each based on the number of rows in Step 1 第2步-基于第1步中的行数
Step 2a - Execute a SQL Procedure based on values in loop 步骤2a-根据循环中的值执行SQL过程
The problem I am finding is that when I add the loop, it states that there is no dynamic content available even though Step 1 will return results. 我发现的问题是,当我添加循环时,它指出即使第1步将返回结果,也没有可用的动态内容。
I've googled and there seems to be no information on using the for each loop in Logic Apps. 我已经用谷歌搜索,似乎没有关于在Logic Apps中为每个循环使用的信息。
Any suggestions? 有什么建议么?
Thanks 谢谢
We're working on a fix for this. 我们正在为此修复。 Before the fix is available, try one of these two workarounds:
在修复程序可用之前,请尝试以下两种解决方法之一:
ResultSets
as the input for foreach . ResultSets
指定为foreach的输入。 ResultSets
as the input. ResultSets
作为输入。 Then use the Output
of the Compose card for for-each loop. Output
用于每个循环。 unfortunately its by design: https://docs.microsoft.com/en-us/azure/automation/automation-runbook-types#powershell-runbooks 不幸的是,它是有意设计的: https : //docs.microsoft.com/zh-cn/azure/automation/automation-runbook-types#powershell-runbooks
I resolved it by calling the SP's in parallel via Logic Apps. 我通过Logic Apps并行调用SP来解决它。 (note: when you do so, don't forget to hit 'Publish' runbook in order for the input variables passed to be picked up correctly)
(注意:这样做时,请不要忘记点击“发布”运行手册,以便正确识别传递的输入变量)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.