cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RayBoone
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
RayBoone
Advocate I
Advocate I

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

v-xida-msft
Community Support
Community Support

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
RayBoone
Advocate I
Advocate I

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

v-xida-msft
Community Support
Community Support

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

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (21,228)