- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 04:22 AM
i need to send one notification which is for problem_task table and my event is on problem table so how to trigger that event.
thanks in advance!!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 05:24 AM
Hi
since your notification is on problem table, you can write a mail script and can query the problem_task details like this.
var gr = new GlideRecord("problem_task");
gr.addQuery("problem",current.sys_id);//check field names
gr.query();
while(gr.next()) {
template.print(gr.number.toString());
template.print("<br>");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 04:27 AM
Hi,
Even if your event is on problem table, in the second parameter of gs.eventQueue function you can pass the object of problem task and so the notification will take fields of problem task.
gs.eventQueue('event name', Problem_Task_object, parm 1, parm 2);
-Anurag

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 04:28 AM
Hi,
Write a BR on your problem task table and add your filter conditions
In your script, you can fetch the problem record using this line
var problem = current.problem.getRefRecord();
gs.eventQueue("your_event",problem,"","");
And you need to ensure that your notification is also on problem table only then the notification will fire..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 05:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2020 05:24 AM
Hi
since your notification is on problem table, you can write a mail script and can query the problem_task details like this.
var gr = new GlideRecord("problem_task");
gr.addQuery("problem",current.sys_id);//check field names
gr.query();
while(gr.next()) {
template.print(gr.number.toString());
template.print("<br>");
}