我创建了一个使用 Sharepoint 触发器“在文件夹中创建或修改文件时”的逻辑应用程序。当我在 Sharepoint 在线上传文件(在 Sharepoint 浏览器选项卡中)时,它工作得很好。但是,当我将文件放入同步的 Windows 资源管理器文件夹中时,它不起作用。
我读到有人遇到了同样的问题:https://learn.microsoft.com/en-us/answers/questions/41215/logic-app-why-does-sharepoint-file-properties-trig.html 。这里说:
Move files and flow runs When you move one or more files from one document library to another, the original file is moved from the source library to the destination library. Moving the file does not alter any custom metadata, including when the file was created and modified. Hence, this action does not trigger any flows for those file updates associated in the library where it was moved.
Syncing files to your OneDrive for business and SharePoint document libraries When users sync one or more files from one document library to another, the original file is moved (synced) from your client to the destination library. Syncing the file will not alter any custom metadata including when the file was created and modified. Hence, this action will not trigger any flows for those file syncs in that library or in your OneDrive for business.
问题是,我需要这个逻辑应用程序来运行,只需将此文件放入 Windows 资源管理器文件夹(这是与某个人共享的 Sharepoint 文件夹)中即可。你知道我怎样才能实现这个目标吗?
最佳答案
当我使用 OneDrive - 创建文件时
连接器时,它开始为我工作,因为我们使用 OneDrive for Windows Explorer 并且需要包含应调用触发器的文件夹。如果我们希望在向子文件夹添加任何文件时触发触发器,则必须将 Include subfolder
设置为 true。
这是逻辑应用工作的屏幕截图
在子文件夹中添加文件时
在根文件夹中添加文件时
关于azure - 将文件拖放到 Sharepoint 文件夹中时如何触发 Azure 逻辑应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69545265/