Replicate SOW Interaction Create Request UI Action using different catalog

ZachFunderburk
Mega Guru

In the Service Operations Workspace, when working on an Interaction record, there is an OOTB UI Action to "Create Request". This automatically opens to the Service Catalog. I'm looking to replicate this functionality, but rather than go to the Service Catalog, have the UI action take the user to another catalog (ie Human Resources Catalog, Technical Catalog, or any custom made ones). Is there a way that this can be set up? 

4 REPLIES 4

Riya Verma
Kilo Sage
Kilo Sage

Hi @ZachFunderburk ,

 

Hope You are doing great.

 

1. Create a UI Action:

  •  navigate to System UI > UI Actions and create a new UI action.
  • Define the following properties for the new UI action:
    • Table: Interaction [task_interaction]
    • Onclick script: Add the following code snippet to redirect users to the Human Resources Catalog. Replace "hr_catalog_page" with the actual URL of your Human Resources Catalog page.

 

window.location.href = '/hr_catalog_page.do';
​

 

 

  • Show Insert: Uncheck this option to prevent the creation of an additional record upon clicking the UI action.

2.Configure UI Action Visibility:

  • To ensure the UI action is visible only in the Service Operations Workspace, you can set visibility conditions based on the workspace.
  • In the UI action form, scroll down to the "Visible" field and add the following condition:

 

current.sys_class_name == 'task_interaction' && gs.getUser().getPreference('glide.ui.accessibility') == 'desktop'
​

 

3. Edit the form layout and add the newly created UI action to the desired location on the form.

 

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Hi Riya, 

 

That does not look to be working. We are using the Employee Center Portal, so essentially I need the UI action to open a new Workspace Tab that leads to the equivalent page of /esc?id=esc_sc_category, 

Zach,

Did you get a resolution to your question? I have the same business need.

kheller
Tera Contributor

Hi @ZachFunderburk ,

Following this fixed this exact problem for me, just adding the desired catalog(s):
https://docs.servicenow.com/bundle/vancouver-platform-user-interface/page/administer/workspace/task/...

Regards,
Ken