问题描述
我正在尝试使用 Power Automate 将 SharePoint 上的文件从一个网站集移动到另一个网站集,但它们的名称或路径中可能包含特殊字符。
我想使用 GetFileByServerRelativePath 和 MovetoUsingPath,它们管理 # 和 %。
第一部分 GetFileByServerRelativePath 运行良好,我可以找到文档,但是当我添加 MovetoUsingPath 时出现错误:“从 JSON 读取器读取时发现意外的 'PrimitiveValue' 节点。一个 'StartObject'预期节点"
这是请求(我删除了 URL 的 Power Automate 参数,我使用了 encodeUriComponent 函数):
_api/web/GetFileByServerRelativePath(DecodedURL=SourceURL)/MovetoUsingPath(newpath=EncodedDestinationURL,moveOperations=1)
目前我正在尝试使用同一个网站集,当它在同一个网站上运行时,我会尝试使用 2 个网站。
源 = /sites/ArchiveSandBox/Source Library/test #1/Book%2.xlsx
目的地 = /sites/ArchiveSandBox/Destination/test #1/Book%2.xlsx
你能帮我解决这个问题吗?
谢谢
注意:我尝试了 Moveto、copyTo,但出现错误:“文件夹“test #1”不存在。”
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)