使用逻辑应用程序将 pdf 文件从 Sharepoint 移动到 Blob 存储容器

问题描述 投票:0回答:1

我创建了一个流程,尝试访问以下路径:“https://cactuscompany.sharepoint.com/sites/dataengineering”。在此路径中,有一个名为“Documents”的库。在“文档”库中,有多个文件夹,例如“Pfizer”、“Roche”、“AstraZeneca”等。每个公司文件夹都包含文件和子文件夹,每个子文件夹都有自己的一组文件。

我的目标是将 PDF 文件从这些文件夹和子文件夹复制到 Blob 容器。文件应该放置在 blob 容器中,不保留文件夹结构,只保留文件本身...

但是,当前流程仅检索文件夹名称列表,不包含文件。我错过了什么?

azure azure-data-factory azure-blob-storage azure-logic-apps power-automate
1个回答
0
投票

您使用的设计只会列出文件夹名称或直接存在的文件名,没有任何文件夹,然后这些文件将被发送。

以下是我们如何移动所有文件。

SharePoint 中的文件:

enter image description here

下面是对我有用的

design

enter image description here

enter image description here

您应该使用

Get Items
动作。获取项目的缺点是您还将在迭代中获取文件夹名称。

Output:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.