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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (28,760)