Trigger Notification

Community Alums
Not applicable

Hello Everyone,

Can anyone help with this?

I want Scheduled Jobs Script

I created 3 Notifications and 3 events and those 3 events that have been created need to be triggered through scheduled job, first event will be triggered if the state has not changed in last 20 days from New to Resolved , second event will be triggered 5 days after the first event if the state has not changed even after the first reminder and 3rd event will be triggered 5 days after the 2nd reminder if the state has not changed even after the 2nd reminder.

1 REPLY 1

Mark Manders
Mega Patron

Not sure on your condition, because is it 20 days on new, or not resolved within 20 days? There are several states in between.

 

But I wouldn't go with a scheduled job. Create a flow on creation of the ticket and put a wait for 20 days in there. After 20 days do a lookup to the record that triggered the flow and validate the state (depending on your exact requirement: see if the state is resolved/still on new). If still on that state, use the send notification action and select the notification you created.

After that, wait 5 days, do a lookup and validate the state, add the send notification action and select your notification and again for 5 days later.

 

In between the lookups, you can add 'else' steps (if look up/validation is false) to end the flow.

 

You can also put the trigger on 'state changes' if you also need this to happen on 'in progress', 'awaiting', etc. The running flow will end, after the next lookup, because it's no longer in the state it was and the a new flow is already active after the state changed, but again: that depends on your exact requirements.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark