Assignment group automatically assigned through Before Business Rules (Scripting)

NBK
Tera Contributor

Hi

How to assign automatically Assignment Group based on Category by using Before Business Rules (Scripting).

If Category is Software, then Assignment Group should be Software and

If Category is Hardware, then Assignment Group should be Hardware and

If Category is Network, then Assignment Group should be Network and

If Category is Database, then Assignment Group should be Database.

 

All these requirements should be in a single Before Business Rule Scripting.

4 REPLIES 4

Abbas_5
Tera Sage
Tera Sage

Hello @NBK,

You can try with Before BR insert and update as per your requirement you can select table name

Before BR - Insert and update.png

 

 

Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik

NBK
Tera Contributor
Spoiler
Hi Abbas,
Tried this but didn't get. What condition did you apply on When to run.

Sagar Pagar
Tera Patron

Hi @NBK,

 

I would suggest to use the Assignment look-up rules instead of writing business rules/ scripts. It will be easier to maintain and update it.

Define assignment rules 

Create an assignment rule 

 

Thanks,

Sagar Pagar

The world works with ServiceNow

NBK
Tera Contributor

Hi Sagar

Yes, I know that. but I want to do it in Business rules.