First calculate, after update data thing with a one click

Hi bubblers, I am facing a issue with data changes because, I need to make a calculation and after save the data and now is saving the data before the calculation, the app is saving a blank.

My idea: when a truck driver click the button “start trip” the app save the current departure time and calculate the estimated arrival making a sum. Here is where I have the problem because when the button is clicked, save the current departure time and estimated arrival before make the calculation, so estimated arrival is blank is that moment. I need to click the button, make the calculartion and after save the changes.

Thank you,
Best regards

@025gerard You can use an API workflow for this where you pass the current departure time as a parameter and the calculation for estimated arrival runs in the backend and then saves to the database only when complete.

This topic was automatically closed after 70 days. New replies are no longer allowed.