How to send single survey for multiple members dynamically?

Prasanna Kumar
Giga Contributor

Hi Team,

As we all know about how the survey triggered for single user. Here my query is, how to send a single survey to multiple users dynamically.

That means, in my trigger condition, I've selected user field is "Caller_id", so, it will trigger to Caller_ID only. only on record creating on Assessment Instance table (asmt_assessment_instance) dynamically.

For example, if I select Watch list (Multiple users), how we need to create multiple records with same task in Assessment Instance table (asmt_assessment_instance) dynamically.

Please suggest is there any possibility to trigger sending single survey to multiple members.

 

Thanks & Regards,

Venkat

7 REPLIES 7

ccajohnson
Kilo Sage

What have you tried so far? How has it failed. How has it succeeded? Please share what you have built so we can focus our solution accordingly.

Hi @ccajohnson

We have created one survey on Request table and the trigger condition is Whenever RITM closed, survey needs to send to "Requested for". This is working as expected now (As per OOB functionality)

Now, our requirement is to send this survey to Multiple users (Dynamically, that means, in Request we have WatchList field is there, based on selection, the survey needs to send to those selected members)

So, please let me know, how to send one survey for multiple users dynamically.

Thanks & Regards,

 

Venkat

Community Alums
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