Assign Service Request to Group after approval

Assign Service Request to Group after approval

Requirement is to have a service request assigned to a Support Group after the request is approved.

  1. Service template is configured with a workflow approver.
  2. Custom function is written to change the group field
  3. Custom trigger is written to execute the script when a request matching the service category is approved.
Script:
requestObj.put("Group",{"name":"Network"});
return requestObj;

Trigger:
Assign to Network after approval   Approved  Any Time 

Criteria
:
Service Category is (Hardware)
Action Executor
:
Assign to Network


The request is not updating with the new group setting.  Am I missing something in my script or trigger configuration?








                  New to ADSelfService Plus?