gs.EventQueueScheduled based on date/time field.

niveditakumari
Giga Sage

Hi, 

 

I want to notify users when planned start date time field value change it should send notification at that time for change request. 

Can you please tell code that how we can achieve it for change request request. 

 

Regards, 

Nivedita

 

 

1 ACCEPTED SOLUTION
6 REPLIES 6

Raghav Sharma24
Giga Patron

Follow below: 

1. Create an after update BR on change request table with condition "planned start date changes".

2. you don't need gs.EventQueueScheduled(), just use gs.eventQueue() to fire an event through your BR.

3. Create a notification which runs  based on your event fired through your BR.

 

Refer : https://www.servicenow.com/community/developer-forum/gs-eventqueue/m-p/1529243 

I want notification should be sent at that time only when planned start date set and I want to know use of gs.EventQueueScheduled. 

Can you please tell me how I can achieve it. 

 

Regards, 

Nivedita

 

 

@Raghav Sharma24 , 

 

I saw that post but I didn't understand So I posted question. 

Can you please tell step by step what should I write in code to achieve it. 

 

Regards, 

Nivedita