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 Automate
Answered

Trimming down string

(0) ShareShare
ReportReport
Posted on by 76

I have a SharePoint single line of text column that I gather in a PowerAutomate flow.

I would need to take the string from this column and trim it down to 15 characters if it's larger than 15 characters.

Could anyone tell me how to do it?

 

Thanks.

 

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hello @leolsdn 

     

    Follow my reply on this post:

    https://powerusers.microsoft.com/t5/General-Power-Automate/At-wits-end-with-Logic-App-Substring-PLEASE-HELP/m-p/644511/highlight/false#M54696


    if you need help let me know

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @leolsdn ,

     

    Could you please share an example of the original string and explain the 15 characters that you want to trim?

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • leolsdn Profile Picture
    76 on at

    Hi Alice, This is what I have:  

     

    PPC-List1

     

        As you can see, the SFDC ID is longer than 15 characters and I need it to be trimmed down to 15 characters.  Following @Jcook  I managed to get its length in PowerApps using:  length(outputs('StoreSFDC'))  

     

    PPC-SFDCLength1

     

    Here is the flow so far:

     

    PPC-Flow1

     

    PPC-Flow2

     

     

     

        and in the end I want the 15-character SDFC variable to be written in a separate SharePoint list:

     

    PPC-FLOW3

     

     

      Thanks again for any help you can provide me.    Andrei. 

  • Verified answer
    leolsdn Profile Picture
    76 on at

    OK. Managed to do it!!!

    Thanks for all the hints!

     

    Here is the logic that did it:

     

    PPC-FinalRC

    PPC-FinalRC2

     

     

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 541

#2
Valantis Profile Picture

Valantis 479

#3
Vish WR Profile Picture

Vish WR 470

Last 30 days Overall leaderboard