cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Geezer
Advocate I
Advocate I

How to create a variable as integer or number

I need to define a variable as a number--integer at least. Why is this so difficult? The only way I've found to create a numeric variable is to create a text variable, and convert it to numeric variable using your real variable name +"Number"

 

This is amazingly klunky!

1 ACCEPTED SOLUTION

Accepted Solutions
shindomo
Continued Contributor
Continued Contributor

Hello @Geezer 

 

Quotes from the following technical document:

Variable data types - Power Automate | Microsoft Docs

 

Numeric value - This is the type applied to numbers. Only this data type can be used in mathematical operations.

Τo create a Numeric value variable, use the Set Variable action and populate the input parameter with a number without any notation.


 

For example:

shindomo_2-1633907752849.png

 

shindomo_3-1633907781346.png

 

Thank you.

View solution in original post

2 REPLIES 2
shindomo
Continued Contributor
Continued Contributor

Hello @Geezer 

 

Quotes from the following technical document:

Variable data types - Power Automate | Microsoft Docs

 

Numeric value - This is the type applied to numbers. Only this data type can be used in mathematical operations.

Τo create a Numeric value variable, use the Set Variable action and populate the input parameter with a number without any notation.


 

For example:

shindomo_2-1633907752849.png

 

shindomo_3-1633907781346.png

 

Thank you.

View solution in original post

I don't know why this didn't work for me before, but it is now.  Thanks.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,800)