Goal: Make a workflow automatically run when the current date is the same date as a value stored somewhere else.
Currently: This workflow does what I want it to do ONLY when a user is on that page or visits that page. However, I need this workflow to trigger no matter what, once a certain date has been reached. Is there a way to do this??
Note: I blacked out two spots, to keep my app private. It doesn’t change anything in regards to my question.
Hi @sounderly.help, you should use an API workflow for this so that you schedule the workflow on the expiration date and it happens no matter what. By scheduling a workflow, you’re queuing it up to run on the server. No need for anyone to be present on a page, it’ll just happen. But it does need to be scheduled from a page.
So you need to create an API Endpoint in your API Workflows area and then schedule an API Workflow from a page, likely wherever the expiration date is being set. The scheduled date would be Thing’s expiration date and the workflow for the API Endpoint would be whatever you want to happen on that date.
Two subtleties that @sounderly.help might need to be aware of:
Scheduled workflows are only available on paid plans (so if your app is still being developed in free mode you can’t do this). Reference for schedule a workflow here: https://bubble.io/reference#Actions.ScheduleAPIEvent
A scheduled event DOES of course need to be scheduled at some point, but that doesn’t have to be from a page. If you needed to kick off some scheduled events en mass you could also do Data Tab > App Data > Bulk operation.
I’m assuming the “monthly” workflow limitation on a personal plan only applies to reoccurring workflows?
Example: Let’s say I set an API workflow to trigger a notification once the time is expired on something. That workflow would only need to fire once. So, I’m assuming that it would trigger when the expiration date is set and not after a 30 day period. I’m also assuming that this would be within the scope of what the personal plan offers?
I do think that the “scheduled workflows” in the table you reference are RECURRING workflows. (and the limitation here is one recurring workflow per “thing” [data type] if I’m not mistaken)
I don’t make any use of the recurring workflows on lists, but many things in my app do “schedule an API workflow” (usually not for some time far in the future but executed “now”) and that all works fine on Personal plan. FYI!