UI Actions in Workspace

Mohamed-Taha OU
Tera Contributor

Hello everyone,
The objectif of my question is how to make my UI action in workspace works. 
I have a question about UI actions in Workspace i tried to use this Script in Workspace client script but it didn't work.
I think that glideModal doesn't work in workspace client script  do you have an idea please ? 
you can ask for more information if necessary.
You can see the screenshot on the attached file : 

Thanks.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Mohamed-Taha OU 

that's correct. there is another way

Did you check OOB UI actions where Modal is used?

Try to replicate on similar lines

I checked "Propose Major Incident" UI action and this is how it invokes

var url = "/sn_major_inc_mgmt_mim_propose.do?sysparm_stack=no&sysparm_workspace=" + true;
g_modal.showFrame({
title: getMessage("Propose Major Incident"),
url: url,
size: 'lg',
autoCloseOn: 'URL_CHANGED',
callback: function (ret, data) {
if (ret)
proposeMIC(data);
}
});

AnkurBawiskar_0-1690366922147.png

 

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