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

How to send email notification on daily basis one time

Saib1
Tera Guru

Hi All,

 

Need to send the oncall schedule rota to customer

 

Requirement

I need to send the below Notification on daily basis at 3:30 AM 

 

Notification Created

 

Saib1_0-1708663545234.png

Saib1_3-1708663948483.png

 

 

1 ACCEPTED SOLUTION

shyamkumar VK
Kilo Patron

@Saib1  , Follow this below Process

 

1. I could see you have already Created an Event 

2. Call this Event into Schedule Job using gs.eventQueue 

 

Below is the Screenshot of Schedule Job Config (Automatically run a script of your choosing) Select this Option while creating new Schedule Job

shyamkumarVK_0-1708671958085.png

 

Syntax : gs.eventQueue('event.name', GlideRecord, parm1, parm2) \

Ex
gs.eventQueue('xyz',current,current.number,gs.getUserName());

 

Regards,

Shyamkumar 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

View solution in original post

5 REPLIES 5

Aman Kumar S
Kilo Patron

You can create a flow and set the trigger condition as daily and select the time.

Then pass on the notification there and that will take of this.

Another way, is to have a scheduled job, create an event and trigger that via the scheduled job using gs.eventQueue function.

3 Ways to Notify with Flow Designer 

Events registry 

 

Best Regards
Aman Kumar

Gopal Allu
Tera Expert

Hi @Saib1 ,

 

This community solution may be helpful for you https://www.servicenow.com/community/developer-forum/creating-schedule-job-to-send-notification/m-p/...

 

Please mark it correct. if it is helpful for you.

 

Thanks,

Allu Gopal.

AishwaryaS1
Kilo Sage

@Saib1, You can do this with the help of Scheduled Job, by creating an event and triggering that using eventQueue.
Another way is to go for a flow designer.

Aishwarya Shelake

shyamkumar VK
Kilo Patron

@Saib1  , Follow this below Process

 

1. I could see you have already Created an Event 

2. Call this Event into Schedule Job using gs.eventQueue 

 

Below is the Screenshot of Schedule Job Config (Automatically run a script of your choosing) Select this Option while creating new Schedule Job

shyamkumarVK_0-1708671958085.png

 

Syntax : gs.eventQueue('event.name', GlideRecord, parm1, parm2) \

Ex
gs.eventQueue('xyz',current,current.number,gs.getUserName());

 

Regards,

Shyamkumar 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar