workspace

ShraddhaMore
Tera Contributor

Hello Community,

 

I have a problem and I need help regarding same. I want to know, if user clicks on NEW button in the list view in ServiceNow Workspace, it should open google.com (it could be any link). Can anyone help me with the client script under UI action configuration>>all global list actions.

 

Thanks in advance!

3 REPLIES 3

Mark Manders
Mega Patron

This sounds like some kind of customization that will leave a huge technical debt. Why not create a new button for this functionality to redirect you to another URL? The new button is there for people with 'create' roles on a table to create a new record of the type of list they are on.

I wouldn't change the OOB button to direct to something outside of ServiceNow. Create a custom button for it, to prevent issues with future upgrades and such.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ShraddhaMore 

 

May i know use case for same.  It is not a best pratice and it will be a customization which need to avoid. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sujatha V M
Kilo Patron
Kilo Patron

@ShraddhaMore Its "Not Advisable" to edit on OOB as @Dr Atul G- LNG & @Mark Manders had mentioned below and also kindly limit your customizations.

 

Below is my implementation as a custom button on Workspace earlier, as we are moving to SOW or explain the impact to the customers on doing the modification. 

 

1. Navigate to Workspace Experience -> List Actions (or) Access the table directly [sys_declarative_action_assignment.LIST] and fill the details,

 

SujathaVM_0-1712238052035.png

 

2. Click on Advanced view and on the client script you can mention as below which will route to the necessary link on click of that button in the workspace. 

 

SujathaVM_1-1712238140748.png

 

Note: 

SujathaVM_2-1712238698502.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.