cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Simmo86
Helper II
Helper II

Adding Integer Variables

I swear this is probably the most simple thing ever but I have been trying to find the answer but dont seem to be able to get a solution. I have a questionnaire and each question I have created a score integer variable for the result. I am then wanting to sum the variables to give me the total score. I have the following flow:

 

Simmo86_1-1606415942496.png

 

But I get the following error........

 

Simmo86_0-1606415886898.png

 

I am sure it is something simple but any help would be much appreciated! 

 

Many thanks in advance.

 

Alex

 

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @Simmo86 

 

You can't use the add() under the compose. You need to use this as an expression. Also add() expression allows to add two numbers at a time. Please see below.

 

image.png

 

so in your case looks you need to convert the mapping dynamic variable to integer as well.

 

add(int('yourdynamicvariable1'),int('yourdyamicvariabel2'))

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @Simmo86 

 

You can't use the add() under the compose. You need to use this as an expression. Also add() expression allows to add two numbers at a time. Please see below.

 

image.png

 

so in your case looks you need to convert the mapping dynamic variable to integer as well.

 

add(int('yourdynamicvariable1'),int('yourdyamicvariabel2'))

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

Simmo86
Helper II
Helper II

Thank you so much, makes perfect sense and works now!

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,548)