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 / Getting user profiles ...
Power Automate
Answered

Getting user profiles for all email addresses in To field of email

(0) ShareShare
ReportReport
Posted on by 77

I have a flow that triggers when a new email is received in a shared mailbox. The flow uses the email address in the TO field to lookup the user profile and get the Department associated with the user the email was sent to to write that along with some other info to a SharePoint list. The flow works fine when there's only one person in the TO field. It fails when there's more than one person.

 

How can I get the Flow to loop through each email address in the TO field to create a new row in the SharePoint list?

Categories:
I have the same question (0)
  • Verified answer
    RayBoone Profile Picture
    77 on at

    Never mind--I got it.

     

    I used a Compose with Split function on the TO field to get the individual email address and then an Apply to each on the Output of the Compose.

     

    screenshot.png

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @RayBoone,

     

    Do you have solved your problem?

     

    If you have any other questions about Microsoft Flow, please feel free to reply here and we would provide a proper workaround for you.

     

    Best regards,

    Kris

  • anupdutta Profile Picture
    14 on at

    I have a situation where i am getting the input in a Powerapps Gallary, which contains multiple emails separated by semicolon or sometimes a single email as well...something like shown in below image....How can i show User Name and Profile picture of emails. Can someone help me with this request.

    anupdutta_0-1704292488075.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard