web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to make SharePoint...
Power Automate
Unanswered

How to make SharePoint Group from SharePoint list Dynamic from HTTP request to SharePoint

(0) ShareShare
ReportReport
Posted on by 4

Hello! Using SharePoint lists and PowerAutomate, I am setting up a flow that sends an email to a SharePoint group for that particular item of a SharePoint list. Different items in the list use different SharePoint groups as we manage permissions by region.

 

In the URI of 'HTTP Request to SharePoint' action, I can input a hard coded group name and this flow works perfectly. 

_api/web/siteGroups/getByName('Group Name')/users

 

However, I want the getByName() to be dynamic and change for the different groups of the SP List. Can this be coded into the URI? Pulling the Dynamic Content's Group Name item did not work for me.

jaykesudana_0-1692998735309.png

jaykesudana_1-1692998919693.png

 

Thank you for your help!

 

 

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @jaykesudana 

     

    You have forgotten to wrap the dynamic group name in single quotes. It should be like (single quotes are highlighted in red color):

    _api/web/siteGroups/getByName('<<dynamic group name>>')/users

     

    Pls try running the flow after correcting the syntax of the URI end point.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

     

  • JS-17091307-0 Profile Picture
    4 on at

    Thank you, @ManishSolanki !

     

    This helped, but I also discovered that I should have initialized a variable before the 'Apply to each' action. 

    Within the 'Apply to each' action, the variable is set to the new array of emails pulled from HTTP request.

     

    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard