I am trying to get the full path of the SharePoint trigger 'When a item or a file is modified' but the full path that SharePoint pulls ends with '5_.000' instead of the actual item path. I need it for when I call an HTTP request that moves that item into a folder within the list, so every time it runs I get the error:
"The expression "Web/getFileByServerRelativeURL('/sites/ITMIS/Lists/IT Ticket Tracker/5_.000')/moveTo(newurl='/sites/ITMIS/Lists/IT Ticket Tracker/Completed Tickets/5_.000'flags=1)" is not valid."
Is there a reason why the full path is coming up like that? Below is my flow and the full path I am getting
Power Automate Flow
Full Path Compose
Solved! Go to Solution.
Hi @brycen
Could you try to encode the Full path value using encodeURIComponent function?
Apart from that, you need a colon between URL and flags value in moveTo function (I also replace blank spaces by %20):
Web/getFileByServerRelativeURL('/sites/ITMIS/Lists/IT%20Ticket Tracker/5_.000')/moveTo(newurl='/sites/ITMIS/Lists/IT%20Ticket Tracker/Completed Tickets/5_.000',flags=1)
Hope it helps!
Ferran
Hi @brycen
Could you try to encode the Full path value using encodeURIComponent function?
Apart from that, you need a colon between URL and flags value in moveTo function (I also replace blank spaces by %20):
Web/getFileByServerRelativeURL('/sites/ITMIS/Lists/IT%20Ticket Tracker/5_.000')/moveTo(newurl='/sites/ITMIS/Lists/IT%20Ticket Tracker/Completed Tickets/5_.000',flags=1)
Hope it helps!
Ferran
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
70 | |
22 | |
17 | |
17 | |
13 |
User | Count |
---|---|
125 | |
34 | |
30 | |
28 | |
26 |