Need to trigger a notification after 11 months from the date which is set on 'implementation date' field on form

anshul_jain25
Kilo Guru

hi, what should be done to trigger a notification after 11 months from the date which is set on 'implementation date' field on form.

that means if current date - implementation date is equal to 11 months than this notification should trigger, what will be the code for this.

1 ACCEPTED SOLUTION

Hi Anshul,,



1. Create a event registry as shown in screenshot.


find_real_file.png




Give a name and table as you require.



find_real_file.png



call this event in your script as gs.eventQueue("event name",gr,"",""); // As per your script replace gr with eder and event name with the one you created now.



2. Create a notification in the same table as event.



HOpe this helps you.


View solution in original post

5 REPLIES 5

Tim Deniston
Mega Sage
Mega Sage

Your best bet is to use gs.eventQueueScheduled(), which you can see an example of here: Create a simple reminder email


snehabinani26
Tera Guru

Hi Anshul,



1.Create a event in Registry.


2. Go ahead with a schedule script execution.


Glide in to the table and addEncoded query as u_loan_return_dateRELATIVEEE@month@ago@11 // change this date field to yours.


3. fetch all the records and trigger the event by gs.eventQueue("event name",gr,"","");


4. Configure the notification in the same table.



Hope this helps you.


anshul_jain25
Kilo Guru

Hi i have created below schedule job which i want to run daily when implementation date is 1 day old


find_real_file.png


so now i have to pass the name of event


gs.eventQueue("event name",gr,"",""); only, what will the configuration of event and notification, can you share some screen shot for that.


Hi Anshul,,



1. Create a event registry as shown in screenshot.


find_real_file.png




Give a name and table as you require.



find_real_file.png



call this event in your script as gs.eventQueue("event name",gr,"",""); // As per your script replace gr with eder and event name with the one you created now.



2. Create a notification in the same table as event.



HOpe this helps you.