工作流程在 Power Automate 步骤中重命名文件时出现错误。

huangapple go评论68阅读模式
英文:

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;"

英文:

With the help of Expiscornovus. The answer to this question is below;

工作流程在 Power Automate 步骤中重命名文件时出现错误。

huangapple
  • 本文由 发表于 2023年2月19日 21:22:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75500431.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定