What’s the Best Way to Assign Assignment Group in ServiceNow (Production Scenario) ?

ny424436
Mega Contributor

Hi everyone,

I was working on a requirement where I had to update Incident records in bulk where state is Open and assignment group is empty, and assign them to the "Service Desk" group using a background script.

I wanted to understand what is the best approach to use in a real production environment.

Some options I considered:

  1. Fetch group dynamically using name and then use group.sys_id
  2. Directly assign the sys_id in the script
  3. Store sys_id in a system property and use gs.getProperty()

Is there any other better or more scalable approach to handle this?

What do you usually follow in real projects and why?

0 REPLIES 0