- 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
11-21-2023 05:47 AM
@Mohith Devatte
I am looking for either "Business Rule" or "Flow Designer" to send email reminders to approvers for every 24 hours up to 5 days when RITM created , On 5th day still no action taken by approver RITM should update with auto closed incomplete. Could you assist with this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 12:43 AM
Hi John,
To send email notification to a specific role, don't forget to add below block of code to your script tp what advised above-
if (userObj.hasRole('incident_manager')) {
<put here your code>
}
else {
}
Mark this as Helpful if it helps.
Regards,
Shubham