cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Wildtypitch
Helper I
Helper I

Approval workflow using site permission groups as approvers but getting error

Following this tutorial and I'm stumbling at this error

https://www.intelogy.co.uk/blog/assigning-microsoft-flow-approvals-to-sharepoint-groups/

 

Using HTTP request to sharepoint action

putting this into the Uri field

/_api/web/sitegroups/getbyname(‘Project Managers’)/users

 

returns this error

"The expression \"web/sitegroups/getbyname(‘Project Managers’)/users\" is not valid.
 
Where Project Managers is an existing site group 
 
Any pointers?
1 ACCEPTED SOLUTION

Accepted Solutions

@Wildtypitch  the quotes looks good now, but you have missed the parenthesis are missing now it should be 

/_api/web/sitegroups/getbyname(‘Project Managers’)/users

Please put parenthesis around ('Project Managers')

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

9 REPLIES 9
annajhaveri
Super User
Super User

@Wildtypitch  the Uri looks correct, can you type in the quotes around project manager by yourself if you have copy pasted the Uri in the flow.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

I've tried quotes and no quotes with no success

@Wildtypitch  the quotes need to there, i tried the same Uri, as i copy pasted the same Uri which you used, i got the same error that you are getting, then i typed in the 'Project Managers' again (without) which fixed the error.

 

Can you share the screenshot of the action that you configure in the flow?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Thanks for looking into it. I tried changing to a name without space underscore etc to no avail.

 

Screenshot_20200924-000513_MotorData OBD.jpg

@Wildtypitch  from screenshot it looks like issue is with quotes, please type in 'Project Managers' by yourself, and use single quotes.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

I'm afraid that's not the issue here. It was originally typed in by myself. Those are single quotes. But I retried it but still nothing. Are we sure the url is correct otherwise?

Here's the screen showing the different single quotes, (no idea why they appeared differentlyScreenshot 2021-02-02 130941.jpg

@Wildtypitch  the quotes looks good now, but you have missed the parenthesis are missing now it should be 

/_api/web/sitegroups/getbyname(‘Project Managers’)/users

Please put parenthesis around ('Project Managers')

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Yay Thanks for your patience! Frustrating!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,285)