Change Status using the Backend Workflow

Hello everyone, good afternoon.
I hope everyone is okay.

Guys, I have a Status field.
I need it to automatically switch to the Database when:
The date in the Due field is less than today.

I don’t know how to set up this trigger in the Backend Workflow. Could you help me, please?

I tried like this!

First I put the Trigger in the Backend workflows:

And then includes the change in the data, according to the conditions:
Deadline > Current Date.
Status other than Done

But unfortunately I didn’t get any results. Help me please!
Stay with God

You can’t use a Trigger event for this…

Instead you’ll need to schedule the backend workflow to run at the due date/time…

1 Like

Thank you my friend.
I don’t know how to do it. Would you help me?

It’s simple…

  • Create a backend workflow with an action to change the Thing’s status field (that workflow will need to have a parameter of the type of thing you want to change)

  • Then, whenever you create a new thing, schedule the backend workflow to run on the due date and pass the newly created thing into the workflow parameter

(if you need to to that retrospectively (i.e. you’ve already got a list of things but you didn’t schedule the backend workflow to run on each of their due dates), you can simply create another backend workflow that will schedule the ‘update status’ workflow mentioned above to run on a single thing’s due date, and then run that workflow recursively over the existing list, to schedule the ‘update status’ workflow for each.

1 Like

Gratitude my friend.
It’s getting much clearer. :wink:

Can I create the schedule when the user logs in?

Sure, you can schedule a workflow any time you like (just be sure to only schedule it once… and not every time they log in)…

1 Like

Gratitude my friend.
I will follow in your footsteps.

God bless you

1 Like

my friend
I think now it will

I created an API

I made the changes to the database

I created a schedule

And I created the condition

I don’t know how to end the condition now!

:man_facepalming:

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