cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
poychang
New Member

Power Automate Desktop can not set number variable start with 0

I try to set variable in Power Automate Desktop with "01234" as text, but it automatic chang my value to "1234" as number. Is there has any way to force to change value type of variable?

 

I set "01234", but....

poychang_0-1614912995848.png

It alway change my value to "1234" as number

poychang_1-1614913008908.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
poychang
New Member

Right now my hack way is...

Create a Zero variable and set value as "0"

poychang_1-1614914049622.png

 

And then set "%Zeor%1234" to the variable I needed

poychang_0-1614914033318.png

 

View solution in original post

theinxman
New Member

To set the variable with "01234" as text, for example, I put on value "%'01234'%".

More info: https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation#hardcoded-values

View solution in original post

3 REPLIES 3
poychang
New Member

Right now my hack way is...

Create a Zero variable and set value as "0"

poychang_1-1614914049622.png

 

And then set "%Zeor%1234" to the variable I needed

poychang_0-1614914033318.png

 

View solution in original post

v-litu-msft
Community Support
Community Support

Hi @poychang,

 

I am glad you have solved the issue by yourself.

You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

theinxman
New Member

To set the variable with "01234" as text, for example, I put on value "%'01234'%".

More info: https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation#hardcoded-values

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,281)