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,504 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,504 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 177 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard