Change field in database back to false after a set time

Hi. Basically I have a field that can be true or false. By default it’s false. I want to change the value to true via a user facing button. And I want the value to go back to false automatically after a certain time period, say after five hours.

How would I go about achieving this?

Thank you for any help,

You can schedule a workflow in the API for current time + 5 hours. Then have the action in the API change the field back to true.

Ah that doesn’t sound too bad. I wasn’t aware that you can use workflows for the API. I’ll try it out. Thanks!

1 Like