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

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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard