how to create a before insert business rule

Joshua Comeau
Kilo Sage

the following parameters

Create a before insert Business Rule.

Condition Assignment Group.active = false

Action : Assignment group To NULL

 

please show code / pictures etc

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Joshua Comeau,

 

Create business rule with your table name and condition as,

Condition:

assignment_group.active IS false

 

Action:

Assignment group IS

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @Joshua Comeau,

 

Create business rule with your table name and condition as,

Condition:

assignment_group.active IS false

 

Action:

Assignment group IS

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

@Sagar Pagar where to place that condition in the advanced script because normal oob does not have an IS

 

can you send a screenshot of what you put?

Hi @Joshua Comeau,

 

For your reference attached the screenshots.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

Anand Kumar P
Giga Patron
Giga Patron

Hi @Joshua Comeau ,

Create a before insert Business Rule.

Condition Assignment Group.active = false
Action:Assignemt Group to Empty reference.
(or)
Script:current.assignment_group='';
Thanks,

Anand