Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Is there an isUpper/isLower methodor equivalent in Power Automate?

(0) ShareShare
ReportReport
Posted on by 12

Hello,

 

I've been assigned to complete a project that's using Power Automate. I need to be able to check whether the first letter of a string is in upper or lower case. I'm able to get the first character of the string but unsure how to check the what case it is in Power Automate. I'm still new Power Automate, usually in C# I would've used the isUpper/isLower methods to check letter casing. I'm unable to find an equivalent method in Power Automate; there's a toUpper and toLower but that isn't what I need right now.

 

Any help is much appreciated.

  • VictorIvanidze Profile Picture
    12,205 on at
    Re: Is there an isUpper/isLower methodor equivalent in Power Automate?

    Try this:

    equals(toUpper(first(variables('s1'))),first(variables('s1')))
  • takolota1 Profile Picture
    4,857 Super User 2025 Season 1 on at
    Re: Is there an isUpper/isLower methodor equivalent in Power Automate?

    @ta-cpc 

    You can also just create a compose with an array and all the values you want to check for, like:

    ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]

    Then you can just use a first( ) and contains( ) expressions to check if that 1st character is in the array of capital letters.

  • ta-cpc Profile Picture
    12 on at
    Re: Is there an isUpper/isLower methodor equivalent in Power Automate?

    I believe I've managed to make something, unsure if it's the right way but it seems to be doing what I need. I've made a Compose node and added the following expression for the its input:

     

    contains(first(split(variables('Test'),'.')[0]), first(toupper(split(variables('Test'),'.')[0])))

     

     

    I've already had a variable called "Test" set before hand. Typically would store a string with a period separating the two e.g. "test.data", which is why I'm using the split method (I'm only going to test for case in the first word, since that's more than enough for me needs). The "first" method is to get the first character of the string. I then use the contains method to check against a second argument; same as the first except I've explicitly set the character to its upper case form. 

     

    After doing all that, the Compose node that the above code is in should return either a true or false value. I make an If-Control node after the compose to check if the output of the Compose node is true or not. That's how I've managed to check for letter case. Still open to a simpler way of checking for letter case

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow