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

Harsh Vardhan
Giga Patron

do you want to set assignment group on record producer form variable ? if yes then maintain it on custom table ( make sure custom table creation now consider as license ) and use script include+ glide ajax to set it over record producer form . 

Hi,

Thank you for your information.

I want to set the assign group of the created record after sending the record producer.

Can the method you told me work for my use case?

Is there any reason not to recommend this assignment rule lookup?

Regards,

 i am assuming here, so you will not have any assignment group variable over record producer form ? or will it available ? 

 

if its available then yes using script include and glide ajax you can populate over record producer assignment group variable also on record producer assignment group variable map it with record group field. 

 

https://docs.servicenow.com/bundle/orlando-it-service-management/page/product/service-catalog-manage...

Hi,

Record producer form don't have assignment group variable.

I want to set an assignment group by a combination of custom categories and subcategories.

 

Regards,