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 emails to people ...
Power Automate
Suggested Answer

Send emails to people in ROWS of Excel after new excel doc is uploaded

(0) ShareShare
ReportReport
Posted on by 2
Hi! I'm wanting to setup a workflow that, in a Sharepoint Folder, once a new excel file is uploaded to the folder, it will be able to List the Rows present, grab the email from inside the excel document, and send emails to each one of them with a certain template (and company image). 

I had originally set the trigger to start when a file was uploaded in Sharepoint and it worked up until the list rows, where it gave me a 'Null' because it didn't know how to refer / map out the rows in the excel. 

How can I go about this? 
Categories:
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,565 Super User 2026 Season 1 on at
    Is the data in a table in Excel? So like this:


    If so then "List rows in a table" -action should be able to retrieve the data. You just give it the correct table name. So like in my picture it would be "Table1".

    If the data is not in a table then there lies the issue. Power Automates Excel actions are not able to read data in Excel if they are not in a table. 
    You could 
    Use "Create table" -action to create the table dynamically as long as you know where the data is in the Excel. So if you know its in A column you can use Table range A:A so that the whole A column will become a table. Or if you know it cant be more than 50 rows long then use Table range A1:A50. That would make the table creation quicker and more reliable than having it create a table from the whole A column.



    It can take some time to create the table even if the action itself has finished so I recommend adding 1 minute of delay before using List rows.
    Also downside to this method of creating table dynamically is that you will always lose the data from the first row since Create table will create a header column to be the first row. 


    Recommended way:
    Better way is to use Office script and creating a script that retrieves the data from the Excel worksheet.





    The script:
    function main(workbook: ExcelScript.Workbook) {
      let sheet = workbook.getWorksheet("Sheet1");
      let range = sheet.getUsedRange();
      let values = range.getValues();
      return values; 
    }

    Then just use that in your flow.


    result:
  • Suggested answer
    CurtisAmrein Profile Picture
    38 on at
    I agree with @eetuRobo's solution if you don't have any control over the Excel file that triggers the flow. If you do however, I'd recommend editing the original file so that the data lives in a table. That will simplify the workflow.
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @CurtisAmrein to get my attention.
    ✔️ Please forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard