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 Automate / Format number variable...
Power Automate
Answered

Format number variable length?

(0) ShareShare
ReportReport
Posted on by 10

I have a desktop flow that pulls a number from an excel sheet and stores it in a variable, is there a way to format the number and add leading zeros to it? I need it to format the number to 5 digits after it is pulled 

 

Ex: 

pulls excel - 39

variable - 39

format to - 00039

 

Thanks!

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Check out Pad text if it suits your requirement

     

    VJR_0-1655176163642.png

     

    VJR_1-1655176210409.png

     

     

  • Karolsweat Profile Picture
    10 on at

    Worked perfectly! This is my first time using desktop and haven't found much documentation for some things yet. Thank you

  • VJR Profile Picture
    7,635 on at

    The PAD text and some other string functions are explained here. It is in the Text manipulation section.

    The above link is a part of this bigger course.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard