web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : RVlkg4+22z8xAgZXjJIKst
Power Automate - Building Flows
Answered

Extract email address from MS Form result

Like (0) ShareShare
ReportReport
Posted on 1 May 2022 13:34:51 by 7

Hi 

 

I've currently got a form that has data in the format in multiple dropdown boxes: 

Position  (mobile no) <first.last@work.com>

 

Is it possible to easily extract just the email address from the form results for use in sending emails 

 

I've tried a few things including: 

Find Text Position then putting it into a substring but the best I can get is <first.last@work.com> 

I need it without the <>

Playing with variables - but haven't had much luck

 

Cheers,

Mruberto

  • MRuberto Profile Picture
    7 on 02 May 2022 at 04:06:02
    Re: Extract email address from MS Form result

    Thanks all for your suggestions - @Paulie78 your solution was simplest (for me at least)... 

     

    Cheers,

    Mark

  • Verified answer
    Paulie78 Profile Picture
    8,416 Moderator on 01 May 2022 at 20:21:30
    Re: Extract email address from MS Form result

    Try this:

    ExtractEmail.png

    Expression in the second action (which is a compose) is:

    slice(outputs('FormResult'), add(indexOf(outputs('FormResult'), '<'),1), indexOf(outputs('FormResult'), '>'))

    Produces the output:

    first.last@work.com

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on 01 May 2022 at 14:22:31
    Re: Extract email address from MS Form result

    Hi @MRuberto

     

    This should give you the desired result; 

     

    Put this in a compose action for example.

     

    replace(replace(variables('NAME OF VARIABLE WITH EMAMIL'),'<',''),'>','')

     

    Heartholme_1-1651414861255.png

     

    If this solves you issue, please consider marking my post as Solved ✔.

     

    Best Regards

    Heartholme

  • GeorgiosG Profile Picture
    1,013 Super User 2024 Season 1 on 01 May 2022 at 14:21:45
    Re: Extract email address from MS Form result

    Hi @MRuberto ,

     

    apart of you formulas before your can add these two easy formulas to cut off the first and last character:

    First character

    substring(variables('Mail'),1,sub(length(variables('Mail')),1))

    Last character

    substring(variables('firstCharacter'),0,sub(length(variables('firstCharacter')),1))

     

    Screenshot 2022-05-01 at 16.19.38.pngScreenshot 2022-05-01 at 16.20.05.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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete