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 / Remove Leading 0s from...
Power Automate
Unanswered

Remove Leading 0s from a variable in power automate flow

(0) ShareShare
ReportReport
Posted on by 58

Hello Gurus 

 

  • I have 2 variables WELL and WL_CO .
  • Value of WELL = 000000000004567 or 000000000055555 or 000007777777777
  • Value of WL_CO = 00032 or 00001 or 88888
  • Size of WELL = 15 Char and WL_CO = 5 Char
  • I want to remove the leading 0 in both variables . 
  • End result WELL = 4567 or 55555 or 7777777777 and WL_CO = 32  or 1  or  88888

 

Requesting help

 

Regards

Categories:
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @avi2017 Please use int() to remove leading zero from the variables.

    Hardesh15_0-1709304132698.png

     

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • avi2017 Profile Picture
    58 on at

    Hi 

    Am not able to select the output of Compose  in Compose 1

    avi2017_0-1709310328008.png

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @avi2017 

     

    Just write the expression to get output of compose 1 instead if it is not appearing as dynamic content 🙂

     

    outputs('Compose_1') 

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • avi2017 Profile Picture
    58 on at

    Am not sure if this will solve the issue of leading 0 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @avi2017 

     

    I think @Hardesh15  instructions would work 🙂

     

    see use the int function over outputs('Compose_1')  ====>  int(outputs('Compose_1'))

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard