Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Workspace Related List Hyperlink

Joshua Jackson
Tera Expert

So far I don't think this is possible but I figured I'd ask anyway. Is it possible to redirect the url of a related list record in workspace view? We set up a table of hyperlinks to a clients external system with a hyperlink label field and the hyperlink field. They want the agent to just be able to click the label field and be taken to the url in the hyperlink field.

1 REPLY 1

Punit S
Giga Guru

Hi Joshua,

 

In ServiceNow Workspace, the related list records are displayed in a list view format and the UI controls are limited compared to the form view. So, unfortunately, it is not possible to redirect the URL of a related list record directly from the Workspace view.

However, you can create a custom UI Action on the related list that opens the URL in a new window when clicked. Here are the steps to create the UI Action:

  1. Navigate to the related list where you want to create the UI Action.
  2. Click on the gear icon in the top-right corner and select Configure.
  3. Click on the UI Actions tab.
  4. Click New to create a new UI Action.
  5. Enter a Name and a Description for the UI Action.
  6. In the Action field, enter the following code:

 

var url = current.getValue("field_name"); // Replace "field_name" with the name of the field that contains the URL
if (url) {
  window.open(url, "_blank");
}

 

Click Submit to save the UI Action.

 

Now, when a user clicks on the UI Action in the related list, it will open the URL in a new window.

 

Please mark my answer correct/helpful in case it adds value and moves you a step closer to your desired ServiceNow solution goal. 

Thanks,
Punit