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 / Count character in str...
Power Automate
Answered

Count character in string in power automate desktop

(0) ShareShare
ReportReport
Posted on by 52

can anyone share the code to count total number of character in string for power automate desktop

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    %TextVariable.Length%

  • mktranslation Profile Picture
    32 on at

    How to or where should I enter such a code in my flow?!

  • UK_Mike Profile Picture
    on at

    Were presuming the " string " is a variable so as above...

    %TextVariable.Length%

    Click on the var to expand it, you will see...

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You can do it anywhere you want to reference it.  For example:

     

    If the number of character in %TextVariable% > 10, move file to long, else move file to short would be:

     

    If %TextVariable.Length% > 10

        Move file to %LongFolder%

        Else

            Move file to %ShortFolder%

    End

  • UK_Mike Profile Picture
    on at

    Screenshot 2022-02-15 201509.png

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard