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

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

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

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard