How to pass the Requestor information from ServiceNOW to VMware Aria Automation
search cancel

How to pass the Requestor information from ServiceNOW to VMware Aria Automation

book

Article ID: 325848

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

The Deployments UI will show the Owner of the deployment the service account used within the ServiceNOW plug-in.

This is expected behavior and by design.

This article provides a workaround to synchronize the Requestor information with the VMware Aria Automation deployment information (the owner will continue to be the service account).


Environment

VMware Aria Automation 8.12.x

Resolution

  1. Create a text field within the form for the VMware Aria Automation Catalog item within Service Broker.

image.png

  1. In ServiceNOW, identify the variable associated with this field, in this example: textField_910aa82e__1

image.png

  1. For your catalog item, create a Catalog Client Script within SNOW, selecting the following options:
  • Type: OnChange
  • UI Type: All
  • Variable name:  CAS Default Variable >> u_project.

image.png

  1. In the script section, add the following script.
function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
   g_form.setValue("ID1",g_user.userName);
    g_form.setReadOnly("ID1",true);
 
   //Type appropriate comment here, and begin script below
Note: Where ID1 is the variable name obtained in Step #1.

Example:

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
   g_form.setValue("textField_910aa82e__1",g_user.userName);
    g_form.setReadOnly("textField_910aa82e__1",true);
 
   //Type appropriate comment here, and begin script below
  1. After requesting a deployment, you will see that VMware Aria Automation has passed the information of the requestor. The owner will still be the service account registered within the plug-in.
image.png