cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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

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?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Advocate I
Advocate I

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

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

View solution in original post

Highlighted
Community Support
Community Support

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

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Advocate I
Advocate I

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

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

View solution in original post

Highlighted
Community Support
Community Support

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

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (4,686)