web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : zHcu7reW2yvznUdL7FjJb+
Power Automate - Power Automate Desktop
Answered

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

Like (0) ShareShare
ReportReport
Posted on 29 Apr 2021 04:47:48 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! 

  • CFernandes Profile Picture
    8,295 Most Valuable Professional on 29 Apr 2021 at 05:49:31
    Re: Power Automate Desktop: How to trim a text string from the end

    Hey Mate @r96359 

     

    I am glad my inputs helped 😊

  • r96359 Profile Picture
    228 on 29 Apr 2021 at 05:45:13
    Re: Power Automate Desktop: How to trim a text string from the end

    Thanks @CFernandes !

  • Verified answer
    CFernandes Profile Picture
    8,295 Most Valuable Professional on 29 Apr 2021 at 05:42:52
    Re: Power Automate Desktop: How to trim a text string from the end

    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!

     

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete