HTTP SharePoint Request Not Working

Jake Brown 21 Reputation points
2023-01-16T08:40:43.95+00:00

I am attempting to change permissions for a SharePoint file in a flow, as follows:

Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-01-24T01:46:10.36+00:00

    Hi @Jake Brown ,

    I'm glad to hear you solve the problem, if you have any issue about SharePoint, you are welcome to raise a ticket in this forum.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [HTTP SharePoint Request Not Working]

    Issue Symptom:

    When using power automate to break the inheritance on the Item or File (API call to SharePoint), an error occurs.

    Current status:

    The issue has been solved. The solution is: Principalid value is a number and does not require quotes and use this type of ' character elsewhere.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-01-17T08:03:46.1833333+00:00

    Hi @Jake Brown ,

    According to the document you provided, I tested it, and the problem you mentioned did not appear, it worked very well.

    Since we can't reproduce your situation, we need to narrow down the problem and try some things.

    1.Please check the library name is correct,or try to use another library for testing.

    2.I noticed that in the error screenshot you provided, the _api prefix is missing, see if that is the problem.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Jake Brown 21 Reputation points
    2023-01-17T16:11:39.3933333+00:00

    Hello @Xyza Xue_MSFT ,

    Thank you for coming back so quickly. I have done the following to no avail:

    • Check that both HTTP requests have _api at the start (they do)
    • Changed the library (to HTTP_Test) and doubl checked, it still doesn't work

    Please see attached screenshot User's image

    0 comments No comments

  3. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-01-18T07:21:46.6+00:00

    Hi @Jake Brown ,

    Since we can't reproduce your situation, Power Automate is a product independent of SharePoint which we are not so familiar with. Regarding the difference between these two methods which is more related to Flow, we would recommend that you go to the forum dedicated to flow, let professionals help you troubleshoot errors:

    Microsoft Power Automate Community

    Thanks for your support and understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  4. Jake Brown 21 Reputation points
    2023-01-23T13:10:10.9133333+00:00

    Answer solved as per this thread: [https://powerusers.microsoft.com/t5/Building-Flows/HTTP-SharePoint-Request-Not-Working/td-p/1974228

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.