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 Platform Community / Forums / Power Apps / Add Leading Zeros in S...
Power Apps
Answered

Add Leading Zeros in Sharepoint List Dynamically update

(0) ShareShare
ReportReport
Posted on by 24

Hello ,

I want to update the SharePoint List column to contain 10 characters long number

for example : 123456 to be  0000123456

and a validation to contain only numbers.

 

I am willing to use any platform to convert the values.

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @jazz1 

    You can never have leading zeros in a SharePoint number column BUT, you can create a SharePoint calculated field using the formula 

    =CONCATENATE(REPT("0",MAX(0,10-LEN(yourcolumn))),yourcolumn)

    You can display a SharePoint numbers column with leading zeros using the Text() formula in PowerApps and saving it as a single line of text type field in SharePoint

    Text(Value(ThisItem.yournumber), "0000000000")

     

  • LaiCBRE Profile Picture
    72 on at

    this is the best answer vs the one I saw using Power Automate!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard