Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to find the sys_id for assignment groups

rwagner
Giga Contributor

I am working with the inbound email actions and part of the script shows the sys_id for an assignment group. I want to change that assignment group and need to know how to find the sys_id for the group I want to use. How do I list out the sys_id's of all my assignment groups?

if (sentTo.toLowerCase().indexOf('mail@mymail.com') >= 0) {

  current.u_assignment_group = '582bfe9a37c15600372fa6d2b3990e1d'; //group1
    }

}

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Rich,



Go to group record and select copy sys_id.


Screen Shot 2016-08-04 at 10.35.15 AM.png


View solution in original post

11 REPLIES 11

Mike I wasnt aware I could do that!


Hi Mike,

I am afraid, but this kind of assignment doesn't work.

 

Regards,

Swarnadeep Nandy

Sean30
Kilo Contributor

I know this is old, but is there a way that you can pass a list names.

assignment_group.name = 'Service Desk', 'sc_fpcms_trade_operations', 'xxxxxx xzcc';

 

In the Rest API explorer I try:  assignment_group.name=sc_fpcms_trade_operations,fsc_fpcms_fund_of_funds.

 

But it returns nothing. 

If I try a single group: assignment_group.name=sc_fpcms_trade_operations 

returns data.

 

You would want:

assignment_group.name=sc_fpcms_trade_operations^ORassignment_group.name=fsc_fpcms_fund_of_funds

Or, assignment_group.nameINsc_fpcms_trade_operations,fsc_fpcms_fund_of_funds