cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dsab81
Microsoft
Microsoft

Count of Upper Case Letters in a String

Hi

May i know the formulae to get the 'count of Upper Case Letters in a Particular String' ?

 

e.g 

Alpha@Gmail.com

Upper Case Letter Count : 2

 

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Community Champion
Community Champion

@dsab81 

 

As @ChristianAbata mentioned there is no formula to get you the count of Upper Case Letters. 

 

I created a flow which accepts an input string and give you the upper case letter count.

 

NOTE: You can use this flow as a child flow and pass the string from your main flow and receive count as response to main flow. 

 

Here are the screens for the flow:

rsaikrishna_0-1622689661940.png

Expression: replace(triggerBody()['text'],' ','')

 

rsaikrishna_1-1622689747019.png

rsaikrishna_2-1622689806379.png

rsaikrishna_3-1622689833351.png

 

Attached the flow package for reference.

 

I hope this will be helpful.

 

Note: You definitely need to consider the number of times you are going to call this flow. You may hit throttling limits if you call many times. Feel free to optimize the flow.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
ChristianAbata
Super User
Super User

HI @dsab81  unfortunally far as I know is not possible by some action or expression. You can try creating a php web service and then you can use it to count Capital letters.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
rsaikrishna
Community Champion
Community Champion

@dsab81 

 

As @ChristianAbata mentioned there is no formula to get you the count of Upper Case Letters. 

 

I created a flow which accepts an input string and give you the upper case letter count.

 

NOTE: You can use this flow as a child flow and pass the string from your main flow and receive count as response to main flow. 

 

Here are the screens for the flow:

rsaikrishna_0-1622689661940.png

Expression: replace(triggerBody()['text'],' ','')

 

rsaikrishna_1-1622689747019.png

rsaikrishna_2-1622689806379.png

rsaikrishna_3-1622689833351.png

 

Attached the flow package for reference.

 

I hope this will be helpful.

 

Note: You definitely need to consider the number of times you are going to call this flow. You may hit throttling limits if you call many times. Feel free to optimize the flow.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

 

 

 

 

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,368)