Need to send notification when worknotes or comments in updated in sc_task table

suuriya
Tera Contributor

HI Community,

 

I have a requirement, need to send the notification to the user mentioned in the variable in sc_task table.

When a request is raised, and it generated the task in the task there will be variable named Email notify (list collector field) users mention din that field need to receive the notifications whenever the work Notes or comments is updated in the task.

 

How we can achieve this as im new to notifications part please explain 

 

Thanks in Advance

6 REPLIES 6

HI @Community Alums ,

Thanks for the reply.

 

I have created event in event registry, BR and notification.

In notification i enabled both param 1 and param 2 but itseems the notification is triggered for param 2 only that is me since i opened the task but param 1 is my requirement that notification need to be send to users present in the list collector field.

 

my code:

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    gs.eventQueue('work_notes_comments.updated', current, current.common_vars_also_notify.getDisplayValue(), gs.getUser().getEmail());


})(current, previous);
 
can you please let me know what is wrong in the script
list collector field - common_vars_also_notify

Community Alums
Not applicable

Hi @suuriya ,

I checked your script and I don't feel there is any problem there.

Please make sure of few points - 

1. that you selected right table in BR, event and notification

2. In BR you checked Inserted and Updated checkbox

3. You select correct filter in BR.

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak