Hi,
I am trying to checkout a file on Sharepoint with a HTTP request:
When I try to run the Flow, I get the error: "Specified value is not supported for the serverRelativeUrl parameter"
The path 'Features/test.xlsx' should be correct. If I look at the file in Sharepoint I see the URL:
https://**site**.sharepoint.com/sites/ertlsrvts04/04/Features/test.xlsx
I hope somebody can help
Thanks,
Marco
Hi @MarcoS
Try _api/web/getFileByServerRelativeUrl('Features/test.xlsx')/checkout()
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsNo the same problem.
Hi @MarcoS ,
Try CheckOut(). It's case sensitive.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsNop is also not working.
Hi @MarcoS
I did tested this and worked for me.
Here /aj/ is my document library name.
In your case _api/web/getFileByServerRelativeUrl('/Features/test.xlsx')/CheckOut()
Try this and let me know.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsNow I get the error:
Hi @MarcoS
Features is your document library? Also could you please post your flow screenshot again.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsYes Features is my document library
Hi @MarcoS
Thanks for the reply.
I can see from the site address you have site address with sites/ertlsrvts04/04
May I ask you what is ertlsrvts04 and 04?
This is something to do with that Uri which is not right at the moment.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsHi,
I don't know where that URL stands for but it is working. if change the URL I also get a warning that it cannot find the website. So this is correct. I can also see this URL when I go the properties of a file on that Sharepoint environment.
Thanks.
Hi @MarcoS
What I meant is ertlsrvts04 is a sitecollection? Also what is 04? Is that another subsite?
If you could explain the above then I could recreate in my environment and see what the issue is.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video Tutorials
Hi @MarcoS ,
Have you tried to use Check out file action?
Best Regards,
I tried to configure it but is asks for an ID. It is not possible to just select a file on Sharepoint?
Hi,
Ertlsrvts04 is sitecollection
04 is a subsite
Greets,
Marco
Hi @MarcoS
Thanks @v-bacao-msft for pointing out the checkout action.
@MarcoS please follow the below steps.
I have created a sitecollection called ajteamsite and subsite as 04. Then created a document library called Features.
Test Result
Here is the SharePoint checkout file
If you need further help please let me know.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsHi,
Yes this works perfectly if I use a hardcoded path to the file.
The path to the file is:
/WerkdocumentenCI/A_PROJECTEN_MARCO/Workforcetotaalnieuweopzet_excel 2019-09-02.xlsx
The strange this is that when I use a variable with the exact same path as above in it, it doesnt work. I get an error:
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
41 | |
40 | |
37 | |
34 | |
30 |
User | Count |
---|---|
47 | |
37 | |
35 | |
26 | |
24 |