I am trying to get file properties for a SharePoint shareable link. I came across a post about doing this using the REST API:
Solved: Get file properties from Sharing link - Power Platform Community (microsoft.com)
I have it all set-up and the url I am generating gives me back the JSON I need if I paste it into a browser. However using the Send an HTTP Request to SharePoint Action gives me the below error:
Unexpected response from the service
clientRequestId: b74fbfb7-d540-4375-af49-4142ec335486
serviceRequestId: b019c09f-203c-2000-a3bf-4839ee8817e5
Has anyone any idea how I can get past this last hurdle?
Thanks!
Hi @eilishourigan, @Norro and @RiccardoBiffi ,
What outputs are you using for your 'Compose URL' step? Hioping to see more screenshots of your working flow as I am having a similiar issue that I posted the other day!
THANK YOU, finally! The "accept" header was my problem!
Had this same problem, for those trying to avoid http you can use http to sharepoint as above, just need to add a header... key: accept value: application/json
I am not really sure how you are forming the URL for the shareable link but I have been doing some research and I also followed the Azure AD Registration Link you pasted above for HTTP Requests and below are my observations
I have been trying to access SharePoint Library from Flow using the HTTP action with the below two endpoints and I am posting my findings here
I get the same error as you do
https://graph.microsoft.com/v1.0/sites/xx.sharepoint.com:/sites/mysite:/lists/{listGUID}/items (Graph API End Point)
I tried a lot of ways to send a request to the Direct End Point (A), but with no success yet. Is it by any chance possible for you to try the Graph API bit here?
In any case, please share the outcome.
Thanks for your reply. So to address each of your points:
Thanks again for your help with this. I know a few people have been looking to get File ID (or properties) from a sharing link so it would be great to have a solution in place.
Hmm, if that is the case lets not get into how to get the HTTP action to work rather take a step back and understand why the SharePoint HTTP action is not working.
You can check the following things to see what is going wrong
Came across this link on how to set up the authentication:
How to get started with HTTP requests in Power Automate - Microsoft Tech Community
I have followed all the steps but now I am getting an error: "Token contains invalid signature."
Thanks, I had tried this but I was getting an authentication error. I wasn't sure how to manage the SharePoint authentication with the HTTP Action? Any ideas?
Based on the Post you have shared here, it looks like you have to use HTTP Action to get the JSON Response and not the "Send an HTTP Request to SharePoint" action.
Perhaps you can try and find out if it works!
I can reproduce the error each time I run the script.
I have posted the HTTP Request to SharePoint Action I am using above.
rpersad
16
David_MA
10
Super User 2025 Season 1
Michael E. Gernaey
8
Super User 2025 Season 1