How to add numbers from object together

Status: Open · Asked by Anders Nielsen on · 0 views

Anders Nielsen — Question ·

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?

Arshil Ahmad — Reply ·

Hi @apps,

Could you please share the Workflow URL where you have this concern?

Arshil Ahmad — Reply ·

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

Anders Nielsen — Reply ·

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.

Arshil Ahmad — Reply ·

We have added a Number Formatter to add the duration time. Please check if this meets your requirement.

Anders Nielsen — Reply ·

Hi ArshilAhmad,
This also works perfectly! And it has so many usecases this strategy! Thanks a lot!

Arshil Ahmad — Reply ·

Thank you for the update. Glad we were able to help.

Back to all forum threads · Log in to reply