Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Unable to attach  on-call workflow's using trigger rules when assignment group is mandatory - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Unable to attach  on-call workflow's using trigger rules when assignment group is mandatory
KB0784518

Unable to attach  on-call workflow's using trigger rules when assignment group is mandatory


1732 Views Last updated : Dec 31, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Use BR to Attach On-Call workflow when assignment group is mandatory

Cause

On-Call workflows are used to identify the current on-call person and assign the task to him based on his acknowledgment.

One way to attach On-Call workflow is to use trigger rules.

But Trigger rules extends assignment rules and they will not be processed when incident assignment group is mandatory.

 

Resolution

The alternative way is to create a Business rule on corresponding table and attach the required workflow using the script.

 

Here is the BR Definition:

When to execute:

After Insert (Please do not execute this BR on update as it might lead to multiple workflow contexts if the workflow adds any work notes to the task)

Filter Conditions:

As per your requirement

Script:

(function executeRule(current, previous /*null when async*/) {

var workflowSysId = '78d9b342ff010200f6d6ffffffffff9d';//sys_id of Workflow (EX: On-Call: Assign by Acknowledgement)

vars = {};
vars.assignment_group = current.assignment_group; //populate input variables based on the workflow

var wf = new Workflow();
var wfc = wf.startFlow(workflowSysId, current, current.operation(), vars);

})(current, previous);

 

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.