So this is my first time using backend workflow and running into to some problems.
What I am trying to accomplish:
Search for all users who haven’t scheduled an appoinment next week and send out messages to all of them to do so. I want this to happen every day at 12 am.
Where I am right now:
I have set up a recursive api that takes a list of user and creates a message. Then schedules it to run again minus the first item until list is empty.
My questions:
Is this the right direction?
How do you make this run every day at 12am?
How do I search for the users in the first place and then feed it into the workflow?
Schedule it for date +1day rounded down to date which will start it at 00:00 the next day and from then one start the nested looping
You could send the list of users from the front end but this will not account for any new users after things start using the logic in point2. You may want to run the search right before the first (or only) loop by using schedule api workflow on a list and use the list on the next action. Alternatively you could also use make changes to a list but this only works for a few hundred entries.
The above is a quick run down of a way to go about this. The aim is not to provide specific how-tos but rather and as I said … a way to get things started so that you can nail down the specifics by grinding through the needed logic.
Thanks.
3. You could send the list of users from the front end but this will not account for any new users after things start using the logic in point2. You may want to run the search right before the first (or only) loop by using schedule api workflow on a list and use the list on the next action. Alternatively you could also use make changes to a list but this only works for a few hundred entries.
How do you search within a workflow if I am not sending in through an element in the front end? I think this is what I am having a hard time getting my head over.