Hi,
Here is my scenario:
I would like to Query list and return certain numbers into a collection variable and add all the numbers in the collection variable and store the resulting sum in a variable.
Is this possible? if so, how?
Please help.
Hi,
Here is my scenario:
I would like to Query list and return certain numbers into a collection variable and add all the numbers in the collection variable and store the resulting sum in a variable.
Is this possible? if so, how?
Please help.
Best answer by kapilkjoshi
Once you have the collection from Query action, create a For Each loop. Create a variable called varSum of type number.
Inside loop (for each number in the collection), Add Math function. It would look like this:
Workflow variable varSum + num (from collection) , save in varSum.
When the loop finishes you will have the sum of all numbers. Hope that helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.