I have been trying to use the Sharepoint “Send an HTTP request to Sharepoint’ Flow action to try to set custom permissions based on this blog entry:
and I’ve been looking at this as well to try to ensure that I am structuring the query correctly: https://gnanasivamgunasekaran.wordpress.com/2016/06/10/sharepoint-rest-api-url-for-accessing-working...
I have been trying to run these queries in a browser as well, but no matter what I do I get some form of the same error:
Run from web browser
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>
-1, Microsoft.SharePoint.Client.InvalidClientQueryException
</m:code>
<m:message xml:lang="en-US">
The expression "web/lists/getbytitle(‘NZEC_EmployeeRequests’)/items" is not valid.
</m:message>
</m:error>
Run from Flow
The expression "lists/web/getbytitle(‘NZEC_EmployeeRequests’)/items(11)/breakroleinheritance(copyRoleAssignments=true, clearSubscopes=false)" is not valid.
clientRequestId: 9c3c1097-d147-425b-afbd-4ef1aa455e13
serviceRequestId: 40afc19e-30e7-8000-15b5-e8e34d332c79
The only query that I managed to run successfully was this one, run from Flow:
Can anyone shed any light on what I'm doing wrong? I am a site owner of this Sharepoint site and NZEC_EmployeeRequests is the name of a list in that site. Is there some other kind of permissions that I need to be able to run these requests?
Solved! Go to Solution.
Posting this in case anybody else is having the same issue....
I’ve found out what the problem is…the single quotes are not right. Apparently an issue with copying text including single quotes from web pages. I re-entered all my single quotes in these actions and now my whole Flow runs.
Simple fix when you know what the issue is...very frustrating trying to work out what's wrong if you don't.
Posting this in case anybody else is having the same issue....
I’ve found out what the problem is…the single quotes are not right. Apparently an issue with copying text including single quotes from web pages. I re-entered all my single quotes in these actions and now my whole Flow runs.
Simple fix when you know what the issue is...very frustrating trying to work out what's wrong if you don't.
Can't believe I've spent 4 days investigating why my Flow wasn't working for it all to be down to copying & pasting the code from another webpage.
Thanks so much for finding & sharing this fix
Had the same issue just now, spent several hours trying to diagnose before I formed a Google query just right to pull up this answer. Voila, problem solved. Thanks!
Hello- I'm new to this and am having the same issue. Can you outline where in the actions you updated the single quotes?
If you have copied & pasted code from a web page, go through the entire chunk of code and delete/replace any single quotes then test again
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
67 | |
24 | |
16 | |
16 | |
13 |
User | Count |
---|---|
116 | |
35 | |
32 | |
28 | |
26 |