逻辑应用嵌套 forloop 错误工作流 运行 操作 'Response' 的类型 'Response' 无法嵌套在类型 'foreach' 的操作下

Logic app nested forloop error The workflow run action 'Response' has type 'Response' that could not be nested under an action of type 'foreach'

我有调用 HTTP 和处理数据的简单逻辑应用程序。

添加这个 forloop 后,我遇到了以下错误的问题 -

The workflow run action 'Response' has type 'Response' that could not be nested under an action of type 'foreach'.

为什么无法在嵌套 for 循环中使用响应。

将所有代码添加到主 for 循环后,它抛出此错误。

原因很简单,在一个双向 http 请求响应类型的逻辑应用程序中,您只能为一个请求发送一个响应。如果假设逻辑应用程序允许您在 for each 循环中发送响应,则意味着每次流程进入循环时,逻辑应用程序都会发送 response.this 理论上不可能有任何客户端发起一旦收到满意的响应,对 httpend 点的请求将关闭连接。这就是您不能为每个循环放入响应形状的原因