Showing results for 
Search instead for 
Did you mean: 
Advocate IV
Advocate IV

Convert Name to Email Address

Does anyone have a recommendation/example of the best way to take a field from Sharepoint and convert it to an email address.  I have a field in Sharepoint where a user selects a name (choice field).   I do not want to use a Person or Group field, as I want to make it a simple choice instead of them having to type in a name.  I want to take this name and convert it to an email address for futher use in the flow.  For example:


Choices in Sharepoint:

Bob Ross

Dale Earnhardt

Jim Croce

Taylor Swift


Output for use in MS Flow:



Any thoughts?  

Advocate I
Advocate I

There is probably a neater way of doing this but use a Compose action to use an IF statment for each:


if(equals(triggerBody()?['FIELD IN SHAREPOINT']?['Value'],'Bob Ross'), '', '')

if(equals(triggerBody()?['FIELD IN SHAREPOINT']?['Value'],'Dale Earnhardt'), '', '')

if(equals(triggerBody()?['FIELD IN SHAREPOINT']?['Value'],'Jim Croce'), '', '')

if(equals(triggerBody()?['FIELD IN SHAREPOINT']?['Value'],'Taylor Swift'), '', '')

Community Support
Community Support

Hi @bclarkuncc,


You could use Expression-replace() to replace the space of the name with "." and then use the concat() function to add the domain name.

I noticed that the domain name of the user's email may be different. I suggest adding a domain tag to the user's domain name in SharePoint list. The field type can also be Choice. Image reference:

SharePoint list:



Formula reference:

concat(replace(items('Apply_to_each')['employee_name']['Value'],' ','.'),'@',items('Apply_to_each')['domain']['Value'])


The result of this expression output is an email that can be used in other Flow actions.



Please take a try and let me know if you have any question.


Best Regards,


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

Hello, @bclarkuncc!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-bacao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager

Hello @digitech 

Would you be able to provide the same script but for flow.  Instead of pulling the data from sharepoint I would like to pull the data from a field in a form.  


Any help you could provide would be appreciated.


Thank you!

Hi @v-bacao-msft ,

I found this thread when swarching for a way to create e-mail address out of Sharepoint list field. Great, thanks!

But, in my case it is a bit more elaborate:

  1. first name and surname are in different columns, and
  2. some first names and/or surnames contain the letters å, ä or ö.


How do i tweak this expression

concat(replace(items('Apply_to_each')['Fornamn'],' ','.'),'@',items('Apply_to_each')['Domain'])

 to create, from this:


Column names are Fornamn, Efternamn, Domain

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (861)