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

if you are setting the  category or subcategory over record producer , then you dont need any assignment group variable over record producer, 

 

just map the variable category or subcategory with target record "category"  or "subcategory" field and then create assignment rule , based on category and sub category you will populate group directly over target record group field. 

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/task-table/concep...

 

Hi,

okay,I wasn't thinking about adding items to the target table.

I was trying to get away with just the variables.

It seems better to keep it as an item.

Thank you so much.

Regards,

Kieran Anson
Kilo Patron

Hi Mi,

Are you wanting to allow the end user to select the assignment group or are you needing it to be decided based on various values? 

If the former, you can use a reference variable and set the 'map to field' property as below.

find_real_file.png

If my reply helped with your issue please mark helpful 👍 and correct if your issue is now resolved.
By doing so you help other community members find resolved questions which may relate to an issue they're having.

Hi

Thank you for your advice.

My ideal is to set up assignment groups when submitting a record producer by category or subcategory.

But I would also like to consider your method.

Regards,

Hi Mi,

Thanks for quick response. In this case may I suggest you install the data lookup service catalog plugin (com.glide.data_lookup.catalog) as this will meet your requirements.

You can follow this docs page on how to use the data lookup but at a high level, see below.

1. Create a data lookup rule

find_real_file.png

2. Set the required lookup data

find_real_file.png

3. Set the variables to look at (i.e category and subcategory) and the field to set with the returned value from the matcher table. An Example would be

CategorySubCategoryAssignment Group
NetworkOfflineNetwork Team

If my reply helped with your issue please mark helpful 👍 and correct if your issue is now resolved.
By doing so you help other community members find resolved questions which may relate to an issue they're having.