How to set assignment group

Mi4
Tera Expert

Hi,

I want to set an assignment group by a variables in the record producer.

This option will increase in the future.

Can these be achieved with assignment rule lookup?

Or do you create a custom table and make a mapping table to handle it?

Can it be done only with business rule?

I'm looking for a way that is as standard as possible and easy to manage without scripts.

Regards,

1 ACCEPTED SOLUTION

Mohammad Danis1
Giga Guru

Hi,

I am assuming you have Category and SubCategory Field avaiable on the target table ?

If yes, then I would suggest you to go with Assignment Rule rather than the Assignment look up Rule :

You can create An Assignment Rule :

find_real_file.png

And to populate Assignment group you can script under script part something like :

if (current.category == "Hardware" && current.sub_category== "Hardware")
    current.assignment_group.setDisplayValue("ABC"); 
 else if (current.category == "Software")
  current.assignment_group.setDisplayValue("XYZ");
else if (current.category == "Malware")
current.assignment_group.setDisplayValue("Security");

find_real_file.png

 

Let me know, if that answers your question and mark my answer as correct / helpful.

 

Kind Regards,
Mohammad Danish

View solution in original post

24 REPLIES 24

Hi,

Thank you very much.

I'll try to install the plugin.

By the way, I would like to use this category and sub-category as an option for employees inquiry.

Is this something weird?

Regards,

Hi Mi,

As they're just variables on your record producer, I don't see that being an issue

 

Swapnil Soni1
Giga Guru

Hi Mi,

Please go through the link might this helps you

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

 

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

 

Mark my answer helpful or correct if this works for you.

Thanks

Swapnil

 

Thank you.

I will do this.

What do you think of setting a ssignment group in a record producer script?

How do you feel about management?

Regards,

Hi,

If you're using the script field in the record producer, you can just use the following to set the assignment group:

 

        current.assignment_group = 'sys_id of the group';

 

And in 2nd question, I don't understand the management of what?