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 / Extracting a list of e...
Power Automate
Answered

Extracting a list of emails from an excel file and sending them an email

(0) ShareShare
ReportReport
Posted on by 11

Hello, 

 

This might be trivial, but I have looked at other threads and cannot find an answer. When a new excel file is created in OneDrive, I would like to extract from that excel file, and more specifically from a column called "Email_list", the list of emails. Then I would like to send an email to those emails. Can you help me with the flow? The data is already in a table format.

 

Best

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    In the flow below I'm assuming the Table name will always be called Table1. Let me know if this isn't the case.

     

    For this example, my Excel file just contains a single column called Email_list in a Table called Table1.

    grantjenkins_0-1673410704552.png

     

    See full flow below. I'll go into each of the actions.

    grantjenkins_1-1673411239377.png

     

    When a file is created waits for a file to be created in my Email Files folder in OneDrive.

    grantjenkins_2-1673411330183.png

     

    List rows present in a table retrieves the Table data using the Table Name Table1.

    grantjenkins_3-1673411391319.png

     

    Select uses the output (value) from List rows present in a table and builds a simple array of emails. The expression used to extract the emails is below. Note that I'm also using Text mode for the Map (see arrow on screenshot below).

    item()?['Email_list']

    grantjenkins_4-1673411509372.png

     

    Join takes in the union of the Select to remove any duplicate emails that may exist. And Join with is set to a semi-colon ; to separate each of the emails.

    union(body('Select'), body('Select'))

    grantjenkins_5-1673411615314.png

     

    Send an email uses the output from Join in the To field so it emails each of the emails listed.

    grantjenkins_6-1673411689448.png


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • TIB Profile Picture
    11 on at

    Thank you very much! That worked perfectly!

     

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard