检查文件是否存在于SharePoint上的文件在线通过文件名和Power Automate存在

发布于 2025-01-23 08:01:45 字数 170 浏览 1 评论 0原文

我正在尝试在Power Automate Cloud中创建一个流程,以使我可以从Google Drive提取一些文件并将其复制到SharePoint文件夹。但是,在复制它之前,它必须按文件名进行检查,该文件尚不存在SharePoint文件夹中的文件。除了检查外,我设法完成了整个流程。 我会非常感谢您的帮助。 非常感谢。此致。

I am trying to create a flow in Power Automate Cloud that allows me to extract some files from Google Drive and copy them to a Sharepoint folder. But before copying it, it has to check by the file name, that the file does not already exist in the sharepoint folder. I have managed to do the whole flow, except the checking.
I would be very grateful for your help.
Thank you very much. Best regards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兲鉂ぱ嘚淚 2025-01-30 08:01:45

文件存在当前不存在操作,但是您可以使用从sharepoint Connector进行获取文件元数据操作进行相同的类型事物。

下面的此流程为您显示了您可以做什么的示例...

“

出于演示目的,我创建了一个带有文件名列表(需要完整路径)的数组,然后我将测试存在。

这些文件之一不存在。

”

然后我循环遍历每个文件,并尝试获取每个文件的元数据。

如果从呼叫获得元数据的结果状态代码不等于200,那么我们知道该文件不存在。

示例...

”项目2“

”

要使此工作,但是,您需要确保条件 sept spep将在元数据调用no之后执行无论结果如何。

通过确保在设置后确保运行配置是正确的...

“

”

因此,您所需要做的就是处理true和true and and and and and and and and条件的错误部分。

A File exists action doesn't currently exist but you can use the Get file metadata using path action from the SharePoint connector to do the same sort of thing.

This flow below shows you an example of what you can do ...

Flow

For demonstration purposes, I've created an array with a list of file names (full path required) that I will then test the existence for.

One of those files doesn't exist.

File Names Array

Files

I then loop through each one of those and try and get the metadata for each file.

If the resulting statusCode from the call to get the metadata is not equal to 200, then we know the file doesn't exist.

Condition

Examples ...

Item 2

Item 3

To make this work however, you need to make sure that the Condition step will execute after the metadata call no matter what the result.

Do this by making sure the Configure run after settings are correct ...

Settings

Run After

So after all of that, all you need to do is deal with the true and false sections of the condition.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文