英文:
Workflow error on power automate step of renaming a file
问题
我在 Power Automate 工作流程步骤中遇到了以下错误:
> 表达式
> "web/GetFileByServerRelativeUrl('/sites/ESMManila/Shared
> Documents/General/WorkloadPlanning/CurrentWorkPlan.xlsx')/moveto(newurl=concat('/sites/ESMManila/Shared
> Documents/General/WorkloadPlanning/',outputs('Compose'),'WorkPlan','.xlsx'))"
> 无效。
当我使用以下 URI 时:
_api/web/GetFileByServerRelativeUrl('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/CurrentWorkPlan.xlsx')/moveto(newurl=concat('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/',outputs('Compose'),'WorkPlan','.xlsx'))
当我在“发送 HTTP 请求到 SharePoint”流程步骤中使用它,用于重命名一个附加了 Compose 公式结果的文件。
英文:
I got this error on the power automate workflow step;
> The expression
> "web/GetFileByServerRelativeUrl('/sites/ESMManila/Shared
> Documents/General/WorkloadPlanning/CurrentWorkPlan.xlsx')/moveto(newurl=concat('/sites/ESMManila/Shared
> Documents/General/WorkloadPlanning/',outputs('Compose'),'WorkPlan','.xlsx'))"
> is not valid.
When i used this uri;
_api/web/GetFileByServerRelativeUrl('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/CurrentWorkPlan.xlsx')/moveto(newurl=concat('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/',outputs('Compose'),'WorkPlan','.xlsx'))
When I use it on the Send an HTTP request to Sharepoint flow step for the function of renaming a file appended with the compose formula result.
答案1
得分: 1
If you want to use the expression within the value you could use the @{} formatting around the concat function.
Try this instead:
_api/web/GetFileByServerRelativeUrl('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/CurrentWorkPlan.xlsx')/moveto(newurl=@{concat('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/', outputs('Compose'), 'WorkPlan', '.xlsx')})
英文:
If you want to use the expression within the value you could use the @{} formatting around the concat function.
Try this instead:
_api/web/GetFileByServerRelativeUrl('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/CurrentWorkPlan.xlsx')/moveto(newurl=@{concat('/sites/ESMManila/Shared%20Documents/General/WorkloadPlanning/',outputs('Compose'),'WorkPlan','.xlsx')})
答案2
得分: 0
以下是翻译好的部分:
"With the help of Expiscornovus. The answer to this question is below;"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论