create a new system property to store 'architects" group sys id and default incident assignment groups to 'architect' using properties using business rule .can anyone help.

shashank32
Giga Contributor

create a new system property to store 'architects" group sys id and default incident assignment groups to 'architect' using properties  

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@shashank

Steps below

1) You would require to create system property to hold the group sys id

2) Then use before insert business rule on incident table to set this group as assignment_group

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

    // Add your code here

current.assignment_group = gs.getProperty('architect_group_sysId');

})(current, previous);

find_real_file.png

As an alternative you can use assignment rule as well to set the default assignment group on incident

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Hitoshi Ozawa
Giga Sage
Giga Sage

Not sure what the question is about. If it's just about creating system properties, enter "sys_properties.list" in Application Navigator.

find_real_file.png

This will list all existing System Properties. Select the "New" button and create the required properties with the required values.

find_real_file.png

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Can you share what you've tried so far? Can you share where you are stuck? Can you share where exactly you need help with?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

@shashank

Steps below

1) You would require to create system property to hold the group sys id

2) Then use before insert business rule on incident table to set this group as assignment_group

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

    // Add your code here

current.assignment_group = gs.getProperty('architect_group_sysId');

})(current, previous);

find_real_file.png

As an alternative you can use assignment rule as well to set the default assignment group on incident

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader