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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract email address ...
Power Automate
Unanswered

Extract email address from MS Form result

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • GeorgiosG Profile Picture
    1,013 Super User 2024 Season 1 on at

    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

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    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

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    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 😘

  • MRuberto Profile Picture
    7 on at

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

     

    Cheers,

    Mark

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard