Access UI Page from UI Action on a Service Operations Workspace

Nataraj Gedela
Tera Contributor

In native incident form, we have a UI action which displays content from a UI page by sending the user sysID as parameter. 

Below is the client script for the UI Action

function publish() {
    var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
    var gDialog = new dialogClass('display_ci_of_caller_new');
    gDialog.setTitle('Display Caller Asset');
    gDialog.setPreference('sysparm_display_name', g_form.getValue('caller_id'));
    gDialog.render();
}
I need help in creating equivalent Workspace client script to achive the same functionality in Service Operations Workspace.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Nataraj Gedela 

there are lot of OOB UI actions where you will see this; it uses g_modal

check this link

How to use UI Actions in Workspaces 

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

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Nataraj Gedela 

there are lot of OOB UI actions where you will see this; it uses g_modal

check this link

How to use UI Actions in Workspaces 

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

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

Thank you Ankur !! This was helpful !!

@Nataraj Gedela 

Thank you for marking my response as helpful.

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

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