Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Action 'Send_an_HTTP_request_to_SharePoint' failed

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)
 
 
  • Expiscornovus Profile Picture
    Expiscornovus 30,623 on at
    Action 'Send_an_HTTP_request_to_SharePoint' failed
    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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard