web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Action 'Send_an_HTTP_r...
Power Automate
Unanswered

Action 'Send_an_HTTP_request_to_SharePoint' failed

(0) ShareShare
ReportReport
Posted on by 10
Scenario:
 
A Teams Sharepoint, where they work on documents in the library. This library has permissions the same as Teams.
If the document is given the shared status then a copy is made and it is moved to another library with different permissions, where everyone has read access.
 
Problem:
 
When copying the document, it also copies the permissions and they take precedence over the 2nd library permissions.
Now I wanted to tackle this with a "Send an HTTP request to SharePoint".
But the following Uri gives me an error message. As a newbie to Power Automate, I can't find what I'm doing wrong.
Can anyone help me?
 
 
 
_api/Web/Lists/getByTitle('Aankoop Documenten - INT')/Items(@{outputs('Copy_file')?['body/Id']})/BreakRoleInheritance(copyRoleAssignments=false, clearSubscopes=true)
 
 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    It looks like there might be a trailing space character at the end of your URI value, can you remove that if that exists?
     
    Additionally, can you remove the If-Match and X-RequestDigest headers? Those shouldn't be needed.
     
    Below is an example from the PnP community with a similar HTTP request:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard