logo

NJP

ServiceNow Things to Know 91: Redirect specific URL from Agent Workspace List

Import · Jan 24, 2024 · article

Hello Everyone,

Explanation - If you need to redirect from the Agent Workspace list to a specific URL then that can be done via a List Action.

1. Create List Action of type Client Script

2. Use the below script in the list action

For Example —

function onClick() {var win = top.window.open(“/now/workspace/agent/new_record/incident”, ‘_self’);win.focus();

}

Note: The URL in this example will redirect to the Incident page within the Agent Workspace list view. URL can be changed based on requirements.

If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL

Best Regards,

Prashant Kumar (LearnIT)

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635

View original source

https://www.servicenow.com/community/developer-blog/servicenow-things-to-know-91-redirect-specific-url-from-agent/ba-p/2802822