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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send Email to Group ba...
Power Automate
Answered

Send Email to Group based on Forms Respondent Email

(0) ShareShare
ReportReport
Posted on by 20

Hi all

 

I am facing the following issue and I have no idea how to solve it. If you have any idea, please be specific since I am relatively new to Flow.

 

  1. I have a Survey based on Forms where our employees report things (it is a company survey, the emails of the respondents are automatically saved) --> this is my trigger
  2. I want to send emails to the whole team of the employee who sent the forms response. E.g. Team A has member one@email.com, two@email.com etc. and Team B has ten@email.com, eleven@email.com etc. and I have many many teams like this.
    If two@email.com submits a form response, the whole Team A incl. one@email.com gets an email. 
    If ten@email.com subtmis a form response, the whole Team B incl. eleven@email.com gets an email etc. etc.

I have an excel file (on sharepoint) which is used for the mapping --> each employee email is mapped to a team (e.g. Team A, Team B etc.).

 

What I struggle with is to read all members out of this excel based on the Forms employee email and sent the email to them.

 

Any help is really appreciated. Thanks in advance!

 

Cheers

Goashu

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @goashu 

    Can you post a screen shot of your Excel table?

     

  • goashu Profile Picture
    20 on at

    @ScottShearer 

     

    The excel list could look like this but its not final, just an example:

     

    team-table.PNG

  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @goashu 

    Here is an example that may help you.

    To accomplish your goal, I used two List rows in a table actions, both with OData filters.

    The first retrieves just the respondent so that I can get the team.

    The second gets all team members.

    I assume that you want one email,so I append all email addresses to a string with a semicolon in between.

    The other variable stores the content from one question - use a variable for each question that you want to reference in the email.

     

    FormsEmail1.jpgFormsEmail2.jpgFormsEmail3.jpgFormsEmail4.jpg

     

     

  • goashu Profile Picture
    20 on at

    @ScottShearer 

     

    Thanks a lot!

     

    It sound like what I need. I will test it this week at work and report back if it worked.

     

    Thanks!!

  • goashu Profile Picture
    20 on at

    @ScottShearer 

     

    I tried to follow your steps but faced some issues I didn't know to solve yet.

     

    Until here, everything worked well I guess:

     

    flow1.png

     

    I am not sure what to enter in the Table field (market red). I entered the worksheet name.

     

    Next, I am missing any Excel Column in the Filter Query field? I need to add the Team Column right? How can I add/connect the Excel on the Sharepoint?

     

    flow2.png

     

    Same issue here:

    flow3.png

     

    And finally: how can I add the "Select an output from previous steps" with the Excel "value" ?

     

    Sorry for all the questions but I am close to finishing this flow (I hope!) 🙂

     

     

     

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @goashu ,

     

    The premise of using List rows present in a table action is that the table has been defined in the specified Excel file, and the corresponding fields are created in it.

    Then you can select the corresponding table directly from the drop-down list in the Table field.

    For connecting the Excel file stored in SharePoint, you can directly select the corresponding SharePoint site in the Location.

    Like:

    18.PNG

     

    Best Regards,

  • goashu Profile Picture
    20 on at

     @ScottShearer 

     

    Thanks @v-bacao-msft - it really was the Table in Excel. Its now fixed and I could rebuild the Flow 1:1.

     

    Unfortunately it is not running correctly. Please check this error message:

     


    flow4.png

     

    There seems to be a problem getting an output but I am not able to fix it.

     

    Any suggestions?

     

     

    Thanks a lot, you both have been a huge help so far!

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @goashu ,

     

    Could you please provide a detailed configuration in Filter Query?

     

    Best Regards,

  • goashu Profile Picture
    20 on at

    Hi @v-bacao-msft

     

    I am not sure I understand. In Filter Query is Responders'Email from Forms like in the picture in my previous post.

     

    This is the details error message:

     

    {
     "status": 400,
     "message": "Syntax error at position 26 in 'daniel.email@email.com'.\r\n inner exception: Syntax error at position 26 in 'daniel.email@email.com'.\r\nclientRequestId: 599de654-a324-47c4-8c53-d308e8f234cf",
     "source": "excelonline-eus2.azconn-eus2.p.azurewebsites.net"
    }
     
    image.png
     
    Does this help or what information do you need?
     
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @goashu ,

     

    Please check this blog and get more details about Filter Query:

    https://veenstra.me.uk/2018/11/12/microsoft-flow-filter-queries-in-sharepoint-get-items/

     

    Best Regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard