Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Custom UI Action/Button on a configurable workspace

nirwan_ritik
Tera Contributor

Hi Community,

 

We are working to enable a functionality to transfer a WSD Case (task inherited) to incident. We do not have Universal Request installed right now - hence working on a custom implementation.

 

Our logic includes below artifacts

1. UI Action calling a UI Page via GlideModal: GlideDialogWindow

(The UI page server side logic then deals with the closure of current case, creating new incident, mapping case details and copying the case attachment to the newly created incident.)

 

The UI page when get's rendered after clicking the UI action - prompts for 2 inputs -> Priority and Category

Problem: We are able to see this button in the workspace - but when clicked the dialog window does not get populated. I believe this is due to the GlideDialogWindow

Assistance: Kindly let me know if I need to configure this this somewhere else. Would really appreciate any leads 🙂

 

Regards,
Ritik

2 REPLIES 2

PradeepReddyA
Tera Guru

Hi @nirwan_ritik 

 

You can use g_modal instead of GlideDialogWindow and refer to the articles for more information

Workspace UI Action g_modal reference field query

How to use UI actions in Workspaces

 

Ankur Bawiskar
Tera Patron

@nirwan_ritik 

you need to use g_modal to open UI page and render

You can check lot of OOTB UI actions which handle something similar

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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