The ServiceNow system administrator can update the existing VMware Aria Automation Approval Sub-Workflow with their custom workflow to send approvals to specific approval groups.

The ServiceNow system administrator can set conditions or criteria using JavaScript in ServiceNow to achieve the following type of context:

A custom workflow can be created to ensure that the requester belongs to either entitlement A or entitlement B or entitlement C. If the user is in entitlement A, the request must go to approval group A. If the user is in entitlement B, the request must go to approval group B. If the user is in entitlement C, the request must go to approval group C.

Prerequisites

You must be the ServiceNow system administrator.

Procedure

  1. Log in to ServiceNow as a system administrator.
  2. From the left pane, go to Administration > Workflow Editor.

    The Workflow Editor opens in a new browser tab.

  3. Search for Automation Day0 Items Approval SubWorkflow and then open the Workflow.
  4. Check out the workflow to add more approval group activities to subworkflow.
  5. In the Approval group activity section, select the Advance check box.
  6. On the Additional groups script box, add the appropriate conditions or criteria in javascript.
    Note:

    For this JavaScript code use the Manage Entitlement table system name that is x_vmw_cloudservice_cas_catalog_entitlement.

  7. Save and publish the workflow.