Default assignment group

Kri
Tera Guru

I want to set a Default assignment group 'MIM Desk' only to the Major case where major_case_state='accepted'

4 REPLIES 4

Ramkumar Thanga
Mega Sage

Did you tried with Business rules. 

Set the when to run condition as when the major_case_state changes to 'accepted'

And  to the action tab  assignment group  as 'MIM Desk'.

 

Thanks!

I have reference qualifier condition for the group field in Case table already it returns the below value for the normal case but for the Major case I want the group to populate as default when form loads 'MIM Desk'

        return 'sys_idIN' + caseObj.product.prd_offering.u_resolver_groups.toString();
 

Amit Gujarathi
Giga Sage
Giga Sage

HI @Kri ,
I trust you are doing great

To set a default assignment group 'MIM Desk' for major cases with a major_case_state of 'accepted' in ServiceNow, you can follow these steps:

  1. Create a business rule that runs when a major case record is inserted or updated.
  2. In the business rule, add a condition to check if the major_case_state field is 'accepted'.
  3. If the condition is met, set the assignment_group field to 'MIM Desk'.
  1. Click on "New" to create a new business rule.
  2. Provide a name for the business rule, such as "Set Default Assignment Group for Accepted Major Cases".
  3. In the "When to run" section, select the appropriate conditions for the business rule to trigger when a major case record is inserted or updated.
  4. In the "Advanced" tab, add the following script in the "Script" section:
(function executeRule(current, previous) {
  // Check if the major_case_state is 'accepted'
  if (current.major_case_state == 'accepted') {
    // Set the assignment_group to 'MIM Desk'
    current.assignment_group = 'MIM Desk';
  }
})(current, previous);

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



I have reference qualifier condition for the group field in Case table already it returns the below value for the normal case but for the Major case I want the group to populate as default when form loads 'MIM Desk'

        return 'sys_idIN' + caseObj.product.prd_offering.u_resolver_groups.toString();