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 / Power Automate Desktop...
Power Automate
Answered

Power Automate Desktop: How to trim a text string from the end

(0) ShareShare
ReportReport
Posted on by 228

I have a long string stored as a variable I want to trim. It's like:

 

asvsadfdfSDGADFGkafasflSDAFSAFFVDVVCdfsgsgffngnf-12345678

 

I'm trying to find a way to store just the last 8 characters or everything to the right of the dash "-".

The values in front of the dash vary in length.

 

For example in Excel I would use =RIGHT(A1,8) if the string was in cell A1.  

=RIGHT(asvsadfdfSDGADFGkafasflSDAFSAFFVDVVCdfsgsgffngnf-12345678,8)

 

Any ideas?

Thanks! 

I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey @r96359 

     

    You will need to Split the Text -

     

    CFernandes_0-1619674843437.png

     

    The above will return you a list, you then need to access the first item from the list - using the formula %TextList[1]%

     

    CFernandes_1-1619674900772.png

     

    This will return you the number -

     

    CFernandes_2-1619674961214.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

     

  • r96359 Profile Picture
    228 on at

    Thanks @CFernandes !

  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey Mate @r96359 

     

    I am glad my inputs helped 😊

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard