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

Are your checking this condition for all active change or only those who are in schedule state … reason the schedule job name start with “Unapproved” means you are concern about unapproved scheduled change. So apply that state filter in gr query. 


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

Vasu ch
Kilo Sage

Hi @balaji kalla007 

In sysevent table check if your event is getting created. You can check the 'state', and 'process on' fields to make sure the event is scheduled correctly. 

 

If your event is getting scheduled correctly, then the issue is with your email notification record. Check if the email has the recipients correctly configured. Make sure the assignment group has the members.

Sandeep Rajput
Tera Patron
Tera Patron

@balaji kalla007 You will not be able to achieve this functionality using a business rule. You have two options here.

1. Either run a scheduled job every 1 hour and query for all those change_requests whose start date time is scheduled in next 4 hours and trigger the notification using gs.eventQueue.

2. Attach a workflow with your change_request record which will have a timer to wait till the start time of the change and will trigger a notification when the start date arrives.

 

Hope this helps.

balaji kalla007
Tera Contributor

I tried the business rule but won't works.

balajikalla007_0-1700473793718.pngbalajikalla007_1-1700473822561.png

 

I already explained you , what you need in such case. BR will not work because BR need some kind of data update trigger point to execute the code .. but your requirement need some kind of polling over change record. So scheduled job or workflow based timer best suited here. 


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