The CreatorCon Call for Content is officially open! Get started here.

Send a Notification 4 Hour before the planned start date of change.

balaji kalla007
Tera Contributor

To send an email Notification to the Change Assignment Group members and Change Requester 4 Hour before start time of the change.

  • Change types in consideration: Normal and Expedited.

I tried the below code and conditions in the business rule.

balajikalla007_0-1700243387980.png

 

balajikalla007_1-1700243471812.png

 

Please help me with this.

 

Thanks in advance

Bala

 

9 REPLIES 9

AshishKM
Kilo Patron
Kilo Patron

Hi @balaji kalla007 

In this case, you need scheduled job, event and email notification. 

Scheduled Job will run and check if any change fall under 4 hour notification, if found any change record,  then it will trigger the event using gs.eventQueue() method which evoke the email notification.

 

Other Idea, you can add timer in change_request workflow which check for 4 hour duration and then trigger the event for notification, i would go with workflow to avoid additional process over the change_request table.  

 

-Thanks,

AshishKMishra

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

balajikalla007_0-1700569645663.pngbalajikalla007_1-1700569676051.png

I tried the scheduled job it is working but it triggers the old changes also. Please help to fix this.

Thanks in Advance

exclude old changes from your gliderecord query.

How can I do that? With hardcoded?