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

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 🙂

I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,418 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,418 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard