How to use assignement rule in custom table?

Akshay Pundeer
Tera Contributor

Whenever a user selects Category as ServiceNow and subcategory as Fundamentals, the Assignment group should be automatically set to custom group created in Assignment 1 and assigned to should be Group Manager else another other selection should clear the value of group field.

6 REPLIES 6

is it correct?

 

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

      if(current.category == 'servicenow' && current.subcategory == 'Fundamentals')

{

current.u_assignment_group = "c31cc1d897411110a51ed200f153af21";

current.u_assigned_to = current.u_assignment_group.manager;

}

})(current, previous);

But it's not working