The CreatorCon Call for Content is officially open! Get started here.

How to set the assignment group in request form as per the task's assignment group.

shrinivasprasad
Tera Expert

Hi All,

I want to set the assignment group in request form as per the task's assignment group which is generated within it.

find_real_file.png

kindly suggest on this.

in advance thanks.

Thanks,

Shrinivasprasad

1 ACCEPTED SOLUTION

Hi,

the above script should work; did you try adding logs and check

Can you share the script you are using in catalog task activity script section

var record = new GlideRecord('sc_request');
record.addQuery('sys_id', current.request);
record.query();
if(record.next()){

gs.info('Inside Record');

 record.assignment_group = task.assignment_group;
 record.update();
}

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

21 REPLIES 21

Thanks ankur

Glad that it helped

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader