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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Send one email capturing multiple rows of data from Excel

(0) ShareShare
ReportReport
Posted on by 7

Hi,

Hoping someone can help. I want to achieve the following automation from this Excel table:

Mike789_0-1691568730376.png

  1. Look at this spreadsheet
  2. Extract the rows related to a specific stakeholder
  3. Combine rows (if a stakeholder has more than 1 activity)
  4. Present data in HTML formatted table
  5. Send 1 email to each stakeholder that contains a table of their related activities

I've looked at other posts but can't achieve what I'm looking to do. I've only just started with Power Automate, so this is a learning curve for me.

 

Many thanks.

I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: Send one email capturing multiple rows of data from Excel

    Hi @Mike789 

     

    I had shared a similar solution in the past, pls check it out:

    Re: combine email addresses by company and send si... - Power Platform Community (microsoft.com)

    The only difference is the data source, but the logic is same. You may need to modify the columns as per your need.

     

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

     

    Thanks

  • Mike789 Profile Picture
    7 on at
    Re: Send one email capturing multiple rows of data from Excel

    Hi @ManishSolanki ,

     

    Many thanks for your reply. I have put together the flow as per the suggested link, but have been given the following error (I have replaced my email address in this text): 

     

    The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"[\test@test.co.uk\,\test@test.co.uk\,\test@test.co.uk\,\test@test.co.uk\];[\test@test.co.uk\]"' to be converted doesn't have the expected format 'string/email'.

     

    Full flow here:

     

    Mike789_0-1691653474135.png

    Mike789_2-1691653563379.png

    Mike789_4-1691653653611.png

    Can you see where I've gone wrong? Any help would be very much appreciated.

     

    Thanks.

     

     

     

     

     

  • Verified answer
    ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: Send one email capturing multiple rows of data from Excel

    Hi @Mike789 

     

    You don't need to have "Apply to each 2" action. Pls drag out "Send an email" action and add inside "Apply to each action" just below "Select 2" action. 

     

    You may create a table using "Create html table" by passing the output of filter array action. The output of "Create html table" will show the data in tabular form in the email:

    ManishSolanki_0-1691656041330.png

    All these actions need to be added inside "Apply to each" action.

     

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

     

    Thanks

  • Mike789 Profile Picture
    7 on at
    Re: Send one email capturing multiple rows of data from Excel

    Thanks so much @ManishSolanki. Managed to solve it! Have some tweaking to do, but have got the main result.

  • Matthew-Svee Profile Picture
    6 on at
    Re: Send one email capturing multiple rows of data from Excel

    I'm trying to do something similar, but the filter array action always returns a blank array.

  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: Send one email capturing multiple rows of data from Excel

    Hi @Matthew-Svee 

     

    Pls share the screenshot(s) of the flow in edit mode.

     

     

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

     

  • Matthew-Svee Profile Picture
    6 on at
    Re: Send one email capturing multiple rows of data from Excel

    @ManishSolanki Here ya go!

    MatthewSvee_0-1715099237494.png

     

  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: Send one email capturing multiple rows of data from Excel

    Hi @Matthew-Svee 

     

    There is small correction in "Select" action.

     

    You need to first remove the dynamic value in Map textbox and then click 'Switch Map to text mode' button on the right side of the Map parameter:

    ManishSolanki_0-1716920153957.png

    Post that, select the dynamic value and set it in the Map textbox:

    ManishSolanki_1-1716920210099.png

     

    Save the flow & retest it.

     

     

     

     

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

     

     

     

     

     

  • Matthew-Svee Profile Picture
    6 on at
    Re: Send one email capturing multiple rows of data from Excel

    @ManishSolanki 

     

    OK, so I have my array now, but I cannot get the email address I have in the table out of the array. the "Select 2" doesn't give me the columns from my HTML table to use as a dynamic expression.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard