Automatic assignment of groups based on conditions is not functioning.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2024 11:11 PM
I've been attempting to automatically assign the assignment group based on certain conditions, but unfortunately, it's not functioning as expected. The requirement entails that when a new case is created, if the Product (a reference field to the Product table) equals 'Alokproduct' and the Feature (another reference field to the Product table) equals 'Alok feature', then the Assignment group for that case should be automatically set to "Case support group". To accomplish this, I've implemented a before insert Business Rule with the following code: if(current.isNewRecord()){ var product = current.getValue('product'); var feature = current.getValue('u_feature'); if (product == 'Alokproduct' && feature == 'Alok feature'){ current.assignment_group = '9d55d96f292200da6f08c6eb3ee442'; } } Please note: There's an existing assignment rule that automatically populates the assignment group based on a different condition. My requirement is distinct, and I intend to overwrite the group assignment when my specified conditions are met. Could someone kindly assist with this matter? Regards,
RonnyW
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2024 11:24 PM
Hi,
Am I understanding this correct, you want to override an existing Assignment Rule with a Business Rule? Why don't you just create an additional Assignment Rule with a lower execution order?
Regards,
Niklas