Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

UI Builder client handler how pass url

armanoj
Mega Sage

Hi team,

 

I want pass url in UI Builder client handler.
when hardcoded its redirecting but there multiple upper instance UAT, Prod , it is not proper to hardcode. please suggest a solution call url of current instace to 
UI Builder client handler

17 REPLIES 17

sorry to say this, i didn't see the images clearly, it is too blur

open that image please @Vishnu Surendra 

i am not able to see the image even though i have saved the image in my local machine too. it is looking blur,

Steps to Configure the Data Broker Server Script

  1. In the Application Navigator, search for Now Experience Framework and select Transforms.
  2. Click New and create a new Transform/Data Broker Server Script with a name of your choice.
  3. In the Properties field,  set the empty array([])
  4. In the Script section, add the following code:
function transform() {
    return {
        "instance_URL": gs.getProperty("instance_name")
    };
}
  1. In the Output Schema section, add the following:
{
    "type": "object",
    "properties": {
        "instance_URL": {
            "type": "string"
        }
    }
}
  1. Save the record and copy the sys_id of the Data Broker Server Script.

    Configure the ACL

    1. Navigate to Access Controls (ACLs) and create a new ACL.
    2. Set the Type to:
    ux_data_broker
    1. Set the Operation to:
    execute
    1. Next to the Name field, click the small blue icon. In the placeholder, enter the sys_id of the Data Broker Server Script that you copied earlier.

    Important: Remove the * that appears before the sys_id in the placeholder. The Name should contain only the Data Broker's sys_id.

    1. In the Requires role section, select the appropriate role for the users who need to execute the Data Broker, and save the ACL.


      cross check these steps again once