Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Migrating UI action in Service Operations Workspace

Maddalena
Tera Contributor

I'm trying to migrate the following UI action "Search for duplicates" (table: kb_knowledge) in the Service Operations Workspace. 

The UI action is Client Type and it has the following script: 

Maddalena_0-1742296632459.png

How to write this in the Workspace Client Script?

 

Thank you 

Maddalena 

 
 
 
5 REPLIES 5

Ankur Bawiskar
Tera Patron

@Maddalena 

Simply ensure these 2 checkboxes are true and use this in workspace client script

AnkurBawiskar_0-1742297158369.png

 

function onClick(g_form) {
    var shortDescription = encodeURIComponent(g_form.getValue('short_description'));
    var url = 'knowledge_home_launcher.do?sysparm_stack=no&query=' + shortDescription;
    open(url);
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you for sharing this! Getting the Search Duplicates in SOW opening a new tab was driving me batty!!!

Maddalena
Tera Contributor

Hello, 

thank you for the reply, but seems like does not working. 

Any other ideas?

Maddalena

@Maddalena 

please share your detailed UI action screenshots you created

Also the workspace view has short_description field on form?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader