Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Trying to Add more than 2 variables in Logic App Cosmos DB

Requirement in Logic App : Need to add 4 variables into a single variable.

I am using the expression Add(Variable1, variable2, variable3, variable4)

But it throws the below error.
Error

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Is there any other way to add 4 variables(int).

Expression Add

>Solution :

Compound them, i.e. use this concept …

add(add(add(variables('Number 1'), variables('Number 2')), variables('Number 3')), variables('Number 4'))

This test flow …

Flow

… gives me this result when I add them using that compound approach …

Result

However, if the amount of numbers you’re adding is dynamic, you may need to loop.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading