Workspace Related List Hyperlink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2023 02:13 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2023 03:53 PM
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:
- Navigate to the related list where you want to create the UI Action.
- Click on the gear icon in the top-right corner and select Configure.
- Click on the UI Actions tab.
- Click New to create a new UI Action.
- Enter a Name and a Description for the UI Action.
- 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