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.

UI Action in workspace is not working.

RichardK781
Tera Contributor

Hi Community,
We are planning on moving to workspace soon. So I have been testing out all the UI action we have on form.
One UI action in particular dont seem to work.

This UI Action gets the accountid and adds the id to the end of a url.
When user clicks on it, full url is formed with account id and user is redirected to the page.

RichardK781_0-1702262796436.png

 

.
Please help. 
 

1 REPLY 1

Natraj S
Tera Expert

Hi @RichardK781 ,

 

Please try checking the "Workspace Form Menu"  and "Format for configurable workspace" option and then try to write a script like below:

 

var accountid = account.u_company_id;

var url = "your url" + accountid;

var win = top.window.open(url,'_blank');

win.focus();

 

Please mark helpful, if the solution works.

 

Thanks