Hello,
I’d like to know how to properly create a workflow that will automatically increment the number of a thing over time, like say for 30 seconds.
This would be the scenario.
Under the User datatype, I’d have a field called “number”.
I’d have a lone button on a blank page that when clicked, it will increment the User’s Number for over 30 seconds and then stop. The increment will continue even if I would leave the page, but still end after 30 seconds.
What would be the best way to accomplish this?
Is the increment supposed to add 30 seconds to some tally? Or are you incrementing the number for a total of 30 seconds?
Hello and thank you for commenting.
I’d be incrementing a number for a total of 30 seconds.
If you want to do that and still be able to leave the page, it would be best to set up a backend workflow for it.
If you are on a hobby plan I don’t think backend workflows are available.
They can be scheduled and once triggered will process in the backend so no need for the app to be open.
1 Like
That is correct, it will not work on a hobby plan. But thanks for the tip for using a backend workflow.
But what would be the workflow and expressions exactly? Would you mind giving me an example?
I’d need more info about your database structure to understand your goal with the incremented value.
What data type is the value a filed of. Is the value added to or starting from scratch each time. What is the starting value for the increment period etc.
Thank you for replying. I’ll respond soon with the specific information you’d need to point me in the right direction.
Thanks.