Not applicable

Hi Prasanna kumar,

Here is the solution for Sending surveys to multiple users from a Watch List:

https://community.servicenow.com/community?id=community_question&sys_id=ce4818bbdb131b80fece0b55ca961982

 

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Hi Sandeep,

I've tried to send Single survey to Multiple users, for that I've written a BR: 

var gr = new GlideRecord('sc_request');
gr.addQuery('sys_id',current.task_id);
gr.query();
while(gr.next()){
(new SNC.AssessmentCreation()).createAssessments('587c8c641b3df0d0907f42e7bd4bcbfc','',gr.watch_list);
}

But, there is no record created on Assessment. Please provide any real time completed scenario, how they customized the same.

Thanks & Regards,

Venkat

Hi Venkat,

 

       Did you find the solution? me too stuck with same scenario. Can u help me on this.

Hello Swati,

Did you got the solution for this, I'm also having same scenario. can you help me with this.

Thanks,

zmehta
Tera Contributor

Hi Prasanna,

You can define another trigger on 'sys_user' table with field id as 'sys_id' and reference it in the BR for first trigger.

Example:

Trigger 1: (on task table) when record is updated based on the conditions.
In the BR, update the script with your logic to trigger Trigger 2

Trigger 2: (on user table) with field sys_id

I hope this will help. 🙂

Let me know.

Thanks
Z