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 / Copy first 4 characate...
Power Automate
Unanswered

Copy first 4 characaters of SharePoint list column to another column

(0) ShareShare
ReportReport
Posted on by 2

Hi There,

 

Hopefully someone can help. I have found many examples online of flows being able to copy data from one column to another using Power Automate, however my requirement is slightly different. I only need to copy the first 4 characters. With our current list we use a calculated column with the formula "=LEFT(Title,4)". Can this be integrated with Power Automate? We need to avoid using a calculated column as it is causes issues elsewhere. 

 

I need to create a flow that will copy column 1 into 2 as below:

 

column 1column 2
abc123abc1
acb432acb4

 

Is there any way to do this? Any help is appreciated. 

Categories:
I have the same question (0)
  • SantoshSarnobat Profile Picture
    30 on at

    yes, you can use slice function

    slice("abc123", 0,4)

    SantoshSarnobat_0-1676637354671.png

    result = abc1

    SantoshSarnobat_1-1676637370624.png

     

     

  • MarkoKrstanovic Profile Picture
    97 on at

    Hi,

    Sure you can!

    You can do that by using expression substring.

    Here is an example:

    MarkoKrstanovic_0-1676637527954.png

    In this case: I am using substring when new item is created in list substring will take column Title and return only first 4 chars.

    substring(triggerOutputs()?['body/Title'],0,4)
     
    BR Marko

     

     

  • loukr55 Profile Picture
    2 on at

    This works well for new items created in the list - is there anyway to get the flow to update all the existing entries in the list? 

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard