Logic Apps-无法使用SharePoint从子文件夹中检索文件 [英] Logic Apps - Cannot retrieve files from subfolder with SharePoint

查看:125
本文介绍了Logic Apps-无法使用SharePoint从子文件夹中检索文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

方案:我们正在尝试将所有文​​件从SharePoint的特定路径复制到Azure Blob存储.

我们正在Logic Apps中使用以下操作和触发器:

重复发生-时间间隔

列出文件夹-列出SharePoint链接中的所有文件和子文件夹

ForEach条件可遍历文件

在ForEach循环中,我们使用了创建Blob-Azure Blob存储"操作,我们试图在其中创建所有文件和子文件夹.

问题:如果存在任何子文件夹,则逻辑应用程序将直接为该文件夹创建blob,而无需检索文件,除非在路径-列表文件夹中指定了该文件

例如,如果demo是主文件夹main/document.txt->这是在Blob中创建的

如果有子文件夹->测试其中是否有File1.txt,那么我将无法动态浏览子文件夹来访问其中的文件

除非我在SharePoint的列表文件夹"操作中手动更改路径,否则不会检索

main/test/File1.txt.

感谢您的帮助.

谢谢.

解决方案

请看看这个:

https://docs.microsoft.com/zh-cn/azure/data-factory/connector-file-system#linked-service-properties

我认为使用通配符应该可以解决您的问题.

让我们知道这是否有帮助,否则我们可以继续进行进一步的研究.


Hello, 

Scenario : We are try to copy all the files from a particular path from SharePoint to the Azure Blob Storage. 

We are using these actions and Triggers in Logic Apps: 

Recurrence - for time interval

List Folder - to list all files and subfolders in the SharePoint link

ForEach condition to loop through files

Inside ForEach loop, we have used the Create Blob - Azure Blob Storage action in which we are trying to create all files and subfolders inside. 

Issues : If any subfolder is present, the logic app creates blob for the folder directly without retrieving the files unless it is specified in the path - List Folder 

For eg., if demo is the main folder main/document.txt -> this is created inside the blob

if there is any subfolder -> test inside which there is File1.txt , then I am not able to dynamically go through the subfolders to access the files inside it 

main/test/File1.txt is not retrieved unless I change the path manually in the List Folder action of SharePoint. 

Any help is appreciated. 

Thank you. 

解决方案

Hi,

Please have a look at this :

https://docs.microsoft.com/en-us/azure/data-factory/connector-file-system#linked-service-properties

I think using a wildcard character should solve your problem.

Let us know if this helps, else we can continue to probe in further.


这篇关于Logic Apps-无法使用SharePoint从子文件夹中检索文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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