Azure逻辑应用程序如何将列表blob附加到数组变量?
您好,我正在开发 azure 逻辑应用程序。我有下面的数组变量。这些是邮件文件夹路径,里面有文件。
[“/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/AdditionalDocumets”,”/mycontainer/PreDesign/1e36d504-787 6-41b1-89b3-83d2132fa7c4/TowerCalcOutPut","/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerDataSheet"] 然后我有下面的方法来列出 blob
这里的 blob 列表是上面定义的数组变量。然后我添加了 listblob,它将循环遍历数组变量中定义的每个路径并列出 blob,并且我想将 blob 附加到数组变量。 在附加数组变量中,我只能附加第一个数组元素内可用的 blob,即 /containername/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/AdditionalDocumets 我无法附加 mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerCalcOutPut","/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerDataSheet 内的 blob,只有第一个元素 blob 我能够将其附加到数组变量中。我正在努力将所有 blob 附加到数组变量中。有人可以帮助我到底在哪里失踪吗?任何帮助将不胜感激。谢谢
Hi I am working on azure logic app. I have below array variable. These are the mail folder path and inside I have files.
["/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/AdditionalDocumets","/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerCalcOutPut","/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerDataSheet"]
Then I have below method to list the blobs
Here blob list is array variable as defined above. Then I have added listblobs which will loop through each path defined in array variable and lists blobs and I want to append blobs to array variable.
Here in append array variable I am able to append only blobs available inside first array element that is /containername/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/AdditionalDocumets
I am not able to append blobs which are inside mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerCalcOutPut","/mycontainer/PreDesign/1e36d504-7876-41b1-89b3-83d2132fa7c4/TowerDataSheet, only first element blobs I am able to append it to array variable. I am struggling to append all the blobs to array variable. Can someone help me where exactly I am missing? Any help would be appreciated. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为该流仅进入第一个文件夹,而不是所有文件夹。
这是您可以尝试的解决方法之一。就像如何附加中所述逻辑应用中来自不同文件夹的多个 blob 只需尝试在
For every 2
末尾添加Append to array variable
即可将具有变量中所有 blob 的路径。下面是我的逻辑应用程序的屏幕截图,供您参考。输出
这是我的逻辑应用程序的代码视图
Its because the flow goes into only the first folder but not all folders.
Here is one of the workaround that you can try. Like said in How to attach multiple blobs in logic app from different folder just try adding
Append to array variable
at the end ofFor each 2
and you will have paths for all the blobs in your variable. Below is the screenshot of my logic app for your reference.output
Here is the code view of my logic app