[Notifications] How to create notifications/reminder to users with a specific role?

John Clyde Ap_a
Giga Expert

Hello, how can I create a notification/reminder to users with a specific role? Can someone please guide me on how to set it up?

My main requirement is just to create a notification/reminder to each manager to check and update the drinks table. 

There are no other prerequisites for it, its just to notify the manager every week or so.

 

How can I achieve this?

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello @John Clyde Ap[as ,

you can do it like this if its a weekly process 

1) Create a event in event register table 

find_real_file.png

2)Create a scheduled job where you can call your event and set your scheduled job to run weekly once at your required time with this script of your requirement and trigger the event 

var gr= new GlideRecord('your_drink_table');
gr.addQuery('<fieldname>','<value>'); //. add your query 
gr.query();
if(gr.next())
    {
        gs.eventQueue('your_event_name',gr,'','');
    }

find_real_file.png

 

3)Then use this event in the notification and in whom to send select your manager as the recepient

find_real_file.png

PLEASE MAK MY ANSWER CORRECT IF IT HELPS YOU

View solution in original post

21 REPLIES 21

Hello Mohith,

How will the managers see the notification? Do I have to create something so they will be able to navigate and see it? or is it mainly being sent to their personal email?

@John Clyde Ap[as so managers cant see it in service now instance until then have admin access .

if you want to send the email to outlook then you might have to enable email properties

find_real_file.png

you can see the check box mail sending enabled  on top you need to check that.

if its dev environment i would suggest you to give or hardcode their emails  in the test email field so that it goes to them .

but keep in mind that every email log will be sent to them not only your notification ,every notification will be sent to the email which you mention in the test email address .

iN SHORT IT WORKS AS THE Global email address which will flood the inbox.

So give the test email and test test flow quickly and then again put it back to some random email as shown above 

 

 

Hello,

I see I understand, so for some cases I would like to test it out for non production purposes I can just use a personal email.   I am trying it right now but for some reason I cannot edit the fields

find_real_file.png

I did a bit of research and it says I have to personally enable it in my instance actions. However I cannot seem to do so as no matter how many times I try it always results to this. 

find_real_file.png

@John Clyde Ap[as is that your personal instance or the client instance ?

It is my personal developer instance as we're only doing this for an internship project.

 

Perhaps emails/notification are not available in PDI as its mainly for testing?