web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : EQbwv6q9yYmuCKTS09aV0U
Power Automate - Building Flows
Answered

Adding Integer Variables

Like (0) ShareShare
ReportReport
Posted on 26 Nov 2020 18:39:38 by 69

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

 

I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,585 Most Valuable Professional on 26 Nov 2020 at 18:45:58
    Re: Adding Integer Variables

    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

  • Simmo86 Profile Picture
    69 on 27 Nov 2020 at 09:46:28
    Re: Adding Integer Variables

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete