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 :
Power Platform Community / Forums / Power Automate / Truncate part of a tex...
Power Automate
Unanswered

Truncate part of a text in a SharePoint column with Power Automate

(0) ShareShare
ReportReport
Posted on by 35

Hello 😊

 

I want to know how to truncate part of a text in a SharePoint column and copy it to another column with Power automate?

 

Example : copy everything after "_" and copy it in an other column

 

 

Thank you 🙂

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at
    Re: Truncate part of a text in a SharePoint column with Power Automate

    Here is how to do the truncation:

    2021-04-07_15-03-05.png

    Expression used is:

    substring(outputs('Compose'), 0, indexOf(outputs('Compose'), '_'))

     

    Then you can copy it back to the item using an update item action.

  • Slm75 Profile Picture
    35 on at
    Re: Truncate part of a text in a SharePoint column with Power Automate

    Hi @Paulie78 

    Thank you for your answer but I cannot retrieve the values ​​of the SharePoint column to be truncated ..

  • Slm75 Profile Picture
    35 on at
    Re: Truncate part of a text in a SharePoint column with Power Automate

     @Paulie78 Thank you for you solution. It's working very well 🙂

  • Slm75 Profile Picture
    35 on at
    Re: Truncate part of a text in a SharePoint column with Power Automate

    Hi @Paulie78 Do you know if its possible to do that  : 

    substring(outputs('Compose'), 0, indexOf(outputs('Compose'), '_') or '/")

     

    Something like that..

     

  • Paulie78 Profile Picture
    8,422 Moderator on at
    Re: Truncate part of a text in a SharePoint column with Power Automate

    You could do something like this instead of indexOf...

    max(
     createArray
     (
     indexOf(outputs('Compose'), '_'), 
     indexOf(outputs('Compose'), '/')
     )
    )

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard