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 : 7Z+cxcJ1To1xP5FzUx/QYQ
Power Automate - Building Flows
Answered

Power Automate: Extract recipients from email

Like (0) ShareShare
ReportReport
Posted on 15 Oct 2023 19:05:20 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!

I have the same question (0)
  • trice602 Profile Picture
    14,638 Super User 2025 Season 2 on 16 Oct 2023 at 18:26:29
    Re: Power Automate: Extract recipients from email

    Hi @Markus924 ,

     

    Very nice!  Have a great day over there!

     

     

  • Markus924 Profile Picture
    12 on 16 Oct 2023 at 18:02:30
    Re: Power Automate: Extract recipients from email

    Thanks, @trice602, this works perfectly well!

  • trice602 Profile Picture
    14,638 Super User 2025 Season 2 on 15 Oct 2023 at 19:39:36
    Re: Power Automate: Extract recipients from email

    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.

     

     

  • Verified answer
    trice602 Profile Picture
    14,638 Super User 2025 Season 2 on 15 Oct 2023 at 19:36:30
    Re: Power Automate: Extract recipients from email

    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

     

     

     

  • Markus924 Profile Picture
    12 on 15 Oct 2023 at 19:07:21
    Re: Power Automate: Extract recipients from email

    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.

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 725 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 363 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 341

Last 30 days Overall leaderboard
Loading complete