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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Text input email valid...
Power Automate
Answered

Text input email validation

(0) ShareShare
ReportReport
Posted on by 71

Hi @PetrosF-MSFT ,

Need your help!. Currently working on a flow on Power automate desktop that requires a user to input their email address correctly using display input dialog action. I know that there are several posts related to this but I could not find any that had the same issue that I am finding. The problem is that I want to check the condition -whether the input email contains @ and .com, Once the condition satisfied, the input email should be print in an excel file.

Sorry if this has been answered already, I am very new to power automate desktop and have been relying on this forum for many of the quirky issues that I have been running into. Thanks in advance!

I have the same question (0)
  • PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @dRautela_1234 

     

    You could use the "IF" actions to check if this condition is met. For this scenario, we would need two (2) IF actions the one embedded into the other.

     

    If the character "@" is contained into %UserInput%, then If the text ".com" is contained into %UserInput%, then write the email to the Excel file.

     

    I hope the above helps!

     

     

  • dRautela_1234 Profile Picture
    71 on at

    Hi, @PetrosF-MSFT ,

     

    I got your point but my concern is for eg. a prompt appears to input the email id into $userinput$ variable. I want to ask for a prompt until it meets the conditions i.e. does not contains @ and .com. so how can I use the loop while condition on that basis?.

    As you suggest if condition, it will work for only one time but I want to iterate till it meets both the condition & sometimes what happen user input for eg.  these below three inputs.

    1. abc@

    2. afbjsbvjsb

    3. abc.com

  • Verified answer
    PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @dRautela_1234 

     

    In that case, you could add all the actions inside a "loop condition" which will always be true (eg. 1=1).

     

    Additionally, inside the embedded "IF" condition, you can add an "Exit loop" action to exit the loop only if both IF conditions are met.

     

    I hope the above makes sense.

  • dRautela_1234 Profile Picture
    71 on at

    Hi, @PetrosF-MSFT ,

    Thanks for the solution. It worked to some extent. 🙂

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 482

#2
11manish Profile Picture

11manish 280

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard