简体   繁体   English

ADF Sharepoint API (HTTP) 连接通配符文件

[英]ADF Sharepoint API (HTTP) Conncection Wildcard File

I have an http connection to a sharepoint db and I would like to import a file without having to specify the file name.我有一个 http 连接到 sharepoint 数据库,我想导入文件而不必指定文件名。 Is it possible?可能吗?

Currently I use a dataset that has parametrized the url to this @concat('dburl/_api/web/GetFileByServerRelativeUrl(',dataset().filename, ')/$value')目前我使用的数据集已将 url 参数化为此 @concat('dburl/_api/web/GetFileByServerRelativeUrl(',dataset().filename, ')/$value')

filename is a parameter that i have defined文件名是我定义的参数

In my pipeline I have the copy activity get the token and the appsecret and I just specify in the filename parameter the name.在我的管道中,我有复制活动获取令牌和 appsecret,我只需在文件名参数中指定名称。 I tried using the symbol * and everything else but it fails.我尝试使用符号 * 和其他所有内容,但它失败了。

In order to download/copy the files from Sharepoint you will have to pass the filenames and you cannot use wildcards naming.为了从 Sharepoint 下载/复制文件,您必须传递文件名,并且不能使用通配符命名。 Hence you will have to follow the below series of steps to achieve it.因此,您必须按照以下一系列步骤来实现它。

  1. Web1 – Get the access token from SPO. Web1 – 从 SPO 获取访问令牌。
  2. Web2 – Get the list of files Web2 – 获取文件列表
  3. From SPO folder ForEach1 – Loop the list of file names从 SPO 文件夹 ForEach1 – 循环文件名列表
  4. Copy1 – Copy Data with HTTP connector as source Copy1 – 使用 HTTP 连接器作为源复制数据

For details steps, please refer to this article by an MSFT engineer - https://techcommunity.microsoft.com/t5/azure-data-factory-blog/sharepoint-online-multiple-files-folder-copy-with-http-connector/ba-p/2480426详细步骤请参考MSFT工程师这篇文章——https://techcommunity.microsoft.com/t5/azure-data-factory-blog/sharepoint-online-multiple-files-folder-copy-with-http-连接器/ba-p/2480426

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM