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 / Power Automate: Extrac...
Power Automate
Answered

Power Automate: Extract recipients from email

(0) ShareShare
ReportReport
Posted on by 12

Hi all,

I'm working on a Power Automate flow that saves all recipients (items in TO line only) as individual items in a SharePoint List. I've found numerous tutorials how to extract data from the mail body but none for the TO line in mail header.

 

Example: A new mail arrives in my inbox that has 3 recipients:

  1. amy@test.com
  2. josh@test.com
  3. joe@test.com

Upon completion of the flow I have 3 new entries in a SharePoint list with the names of the 3 mailadresses.

 

I'm ok with the first 2 parts of the flow (when new e-mail arrives, get e-mail) but struggle then.

 

Who can help? Much appreciated!

Categories:
I have the same question (0)
  • Markus924 Profile Picture
    12 on at

    UPDATE: I've experimented with dynamic content 'To' and export this to an item but it leads to duplicate entries and it does not work with mails where there is more than 1 recipient.

  • Verified answer
    trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Markus924 ,

     

    I was able to take multiple email addresses from the To: field and create individual items in my SP List. Here's the flow:

     

    trice602_0-1697398400471.png

     

    My 2nd compose uses the split() expression:  

     

    split(outputs('Compose_2'),';')
     
    trice602_1-1697398455525.png

     

    Next I initialize an array variable.

     

    trice602_2-1697398515522.png

     

     

    Lastly,

     

    For each email address in my array, I create an item.

     

    trice602_3-1697398578711.png

     

     

     

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Markus924 ,

     

    Also note, you don't need "Get Emails (V3)" action because the data you are working with is all contained in the trigger output.  Please also consider marking this reply as a solution also.

     

     

  • Markus924 Profile Picture
    12 on at

    Thanks, @trice602, this works perfectly well!

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Markus924 ,

     

    Very nice!  Have a great day over there!

     

     

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard