Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Turn Variable Into an Email Address

(0) ShareShare
ReportReport
Posted on by 80

Hello,

 

How would I go about taking a variable and turning it into an email address?

 

For example, I have a flow that retrieves a users first and last name that is stored into a variable and I need to send that user an email.

 

FirstNameLastInitial@domain.com

John Contoso > JohnC@domain.com

 

 

 

  • frankc9 Profile Picture
    80 on at
    Re: Turn Variable Into an Email Address

    @Mark-Shenouda 

     

    Hope you are doing well yourself!  This was exactly what I was looking for and I was able to piece it all together.  At one point I was in the right spot, but couldn't figure out how to pull the first and last name from the split text.  

  • Verified answer
    Mark-Shenouda Profile Picture
    Microsoft Employee on at
    Re: Turn Variable Into an Email Address

    @frankc9 
    Hope you are well, 
    I believe you can achieve this by using multiple actions, 

    1. Use SplitText action to split the first and last name by Spaces
      Mark-Shenouda_0-1618743036047.png
    2. you will now have a list of text, that contains 2 items , now you can use the Get Sub text action to get the first character of the Last name as below 

      Mark-Shenouda_1-1618743131079.png

    3. Finally you can concatenate them in a variable and do the desired operation 

    Hope this helps 
    Best Regards

     

  • Paulie78 Profile Picture
    8,416 Super User 2025 Season 1 on at
    Re: Turn Variable Into an Email Address

    I have no doubt it is possible. But I have hardly use Power Automate Desktop, so I cannot tell you how to do it. It's something I hope to spend more time on very soon.

  • frankc9 Profile Picture
    80 on at
    Re: Turn Variable Into an Email Address

    Thank you for the quick reply!

     

    I am sorry, I should have added if it would be possible to do this in Automate Desktop? Currently, I have an unattended desktop flow triggered by the cloud connection.

  • Paulie78 Profile Picture
    8,416 Super User 2025 Season 1 on at
    Re: Turn Variable Into an Email Address

    Try this expression:

    concat
    (
    split(variables('Name'), ' ')[0],
    substring(split(variables('Name'), ' ')[1], 0,1),
    '@domain.com'
    )

     Screenshot:

    2021-04-15_16-38-42.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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1