Regarding requirement of javascript in service now

Rishabh2631997
Tera Contributor

I need a script where for a particular group evidences I can add 2 people of watchlist to all the evidences in one go.

3 REPLIES 3

SUBHAM_SHAW_SN
Tera Guru
Tera Guru

@Rishabh2631997 Can you please elaborate what you are actually looking for?

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Rishabh2631997 ,

var gr= new Gliderecord('Evidence table');

gr.addQuery('fieldname','value); or use Encoded query

gr.query();

while(gr.next())

{

gr.watch_list='Sys_id of the people which you want to add';

gr.update();

}

 

Thanks,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Rishabh2631997 ,

var gr= new Gliderecord('Evidence table');

gr.addQuery('fieldname','value); or use Encoded query

gr.query();

while(gr.next())

{

gr.watch_list='Sys_id of the people which you want to add';

gr.update();

}

 

Thanks,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.