How to add numbers from object together
Status: Open · Asked by Anders Nielsen on · 0 views
Hi,
See this video please:
https://share.zight.com/BluApY5J
I want to add the amount from each object together (Usecase: Calculate a sum to charge in Stripe for consulting)
How can I do this?
Hi @apps,
Could you please share the Workflow URL where you have this concern?
Hi @ArshilAhmad,
Yes, it is this one
https://connect.pabbly.com/workflow/mapping/IjU3NjYwNTZhMDYzNTA0Mzc1MjZmNTUzNzUxMzMi_pc
Feel free to edit - It is Step 4 inside the Router. You can see the output I want to combine. Here there are only 2 because that's because it's only a test. But there will be hundreds of timeentries.
We are no longer receiving the duration in the Timing action step. Please check the data you are passing, disable 'Simple Response', and click on 'Save & Send Test Request'. Once the duration is captured, do let us know
Hi ArshilAhmad,
I can see the start_date_,min was changed. I changed it back and you can just leave it at this and you will get two numbers. I submitted the flow so you can see the two numbers again.
Also I want to clarify that the numbers to be added are those from:
Data 0 Duration (3600 now)
Date 1 Duration (769 now)
Data 2 Duration
Etc. etc. no matter how many there are it should add all.
We have added a Number Formatter to add the duration time. Please check if this meets your requirement.
Hi ArshilAhmad,
This also works perfectly! And it has so many usecases this strategy! Thanks a lot!
Thank you for the update. Glad we were able to help.