cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Is Value a Number or Letter

Is there a Flow action that will determine if a value is a number or letter? 

 

I'm wanting to extract the first value of a string, then perform a certain action if it's a number or letter.
If value = number, then send email to Orange
If value = letter, then send email to Red

1 REPLY 1
Dual Super User II
Dual Super User II

Hi @ques0buffet 

 

To get the first character from string use expression

substring(your value,0,1)

 

now to check if it is number or not

if you run expression 

int(substring output)

 

This will succeed if it is an integer else it will throw an error.

You can use configure run after action to check if error.

In case of error - the  first character is a string

In case of success - the first character is a number

 

How to perform error handling - https://flow.microsoft.com/en-us/blog/error-handling/

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (42,775)