检查文件是否存在于SharePoint上的文件在线通过文件名和Power Automate存在
我正在尝试在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文件存在
当前不存在操作,但是您可以使用从sharepoint
Connector进行获取文件元数据
操作进行相同的类型事物。下面的此流程为您显示了您可以做什么的示例...
出于演示目的,我创建了一个带有文件名列表(需要完整路径)的数组,然后我将测试存在。
这些文件之一不存在。
然后我循环遍历每个文件,并尝试获取每个文件的元数据。
如果从呼叫获得元数据的结果
状态代码
不等于200,那么我们知道该文件不存在。示例...
要使此工作,但是,您需要确保
条件
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 theGet file metadata using path
action from theSharePoint
connector to do the same sort of thing.This flow below shows you an example of what you can do ...
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.
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.Examples ...
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 ...So after all of that, all you need to do is deal with the true and false sections of the condition.