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 / Word Counting (regex) ...
Power Automate
Unanswered

Word Counting (regex) in PowerAutomate

(0) ShareShare
ReportReport
Posted on by 9

Context :
User input is marked as draft in the associate powerapps until it meets a certain wordcount.

Flow should send out an email reminder to users who's textbox doesn't match the wordcount.

Powerapp formula:

 

 

CountRows(
 Filter(
 MatchAll(
 ThisItem.'Peer comment',
 "(\s|\n?)*(\s|\n?)"
 ),
 !IsBlank(FullMatch)
 )
 )

 

 

 I'd like to count the wordcount the same way in my flow, to make sure the wordcount is consistent across both the app and the flow.

Issue is the functions I use in powerapps don't seem to exist in powerautomate.

I've seen I could use an excel spreadsheet to do the match,but that sounds overly complex.

Any suggestions ?

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    There are some third-party connectors that offer regex. Otherwise, I'd suggest Office Script as you mentioned if you needed regex.

     

    The only downside with using Office Scripts is that they are stored in your OneDrive. So, if other people need to use the script (flow runs as another user) you will need to share the Office Script first. We can now store Office Scripts in SharePoint, but unfortunately at this stage, you then can't access it from Power Automate - so needs to be in OneDrive for now.

     

    Another alternative is to split the textbox content by " " which should give you an array of words and you can use length to get the number of items (words) in the array.

  • Verified answer
    BrokenClock431 Profile Picture
    9 on at

    I've gone plan B, and added a wordocunt column that the powerapps populates when submitting the form.

    Not exactly great but hey.
    Wish there was feature parity across the power ecosystem for different functions.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard