- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 10:57 PM
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?
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
-
Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 11:17 PM
Hello
you can do it like this if its a weekly process
1) Create a event in event register table
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,'','');
}
3)Then use this event in the notification and in whom to send select your manager as the recepient
PLEASE MAK MY ANSWER CORRECT IF IT HELPS YOU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 11:04 PM
Hi John Clyde Ap[as,
If you just want to notify manager weekly then you can create scheduled job and use eventQueue method to trigger notification by firing a event, and in the notification whom to send section you can add a manager.
If you want to send notification to the user with specific role so, you can add users to the specific group and then give role to that group and then in the notification, whom to send section select that specific group.
If you need any other help then you can ask here.
If this helps, please mark helpful and correct.
Thank you
Gaurav Rotke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 11:17 PM
Hello
you can do it like this if its a weekly process
1) Create a event in event register table
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,'','');
}
3)Then use this event in the notification and in whom to send select your manager as the recepient
PLEASE MAK MY ANSWER CORRECT IF IT HELPS YOU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 11:21 PM
Hello Mohith,
I appreciate the reply, I have tried it but I am a bit confused on setting up the event registry.
I also have a question on which part is this referring to.
This is the current config for the script:
Thank you and I apologize for the inconvenience.