UI Actions in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 02:56 AM - edited 07-26-2023 06:18 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 03:22 AM
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);
}
});
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader