cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GoGorilla
Helper III
Helper III

break role inheritance when user submits powerapp

Hi, All.

 

I am building a flow using the Send an HTTP request to SharePoint to break inheritance on items.  I have built this before but have not when an item is submitted through a canvas powerapp.  While using my Test User, I am getting a ubiquitous 500 internal server error but he 401 status means unauthorized.  Everyone in the company can submit a form launched by a button on the top page, but once they submit a form, permissions need to be removed then add the created by and an admin group.  Only the creator and the admins can see items.  I do NOT want the Employees group to have owner or edit permissions to run this flow.  Any assistance would be appreciated.

{
  "status": 401,
  "message": "500 INTERNAL SERVER ERROR\r\nclientRequestId: bd7d0e53-7c32-4359-9701-917ebf3b3479\r\nserviceRequestId: 5a4811a0-30b5-1000-40ad-666edd39a11c",
  "source": "https://tqi2.sharepoint.com/%20_api/lists/getByTitle('OFI')/items(['17'])/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)",
  "errors": []
}

 

1 ACCEPTED SOLUTION

Accepted Solutions
GoGorilla
Helper III
Helper III

The cause of the error was an extra space before the _api and '' and [ ] around the ID.

View solution in original post

1 REPLY 1
GoGorilla
Helper III
Helper III

The cause of the error was an extra space before the _api and '' and [ ] around the ID.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,147)