Call Catalog Item from UI Action button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 06:49 AM
Hey Ankur,
Below is the code I used from your previous thread but tried to tweak it to call the Catalog Item from the UI Action button instead of clicking on a link. Please see below -
} else if {current.category == "Complaint") {
var portalUrl = '/sp?id=sc_cat_item&sys_id=' + 'mySysID';
g_navigation.open(portalUrl, '_blank');
Unforturnately, this is not working. Can you help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 06:51 AM
Note: the ELSE IF statement is checking if the Category is set to Complaint (Interaction table) then the Catalog Item will open in same tab or new window. Supposedly...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 06:58 AM
where is this script written?
is that UI action a server side or client side?
you are using current object which is server side and then g_navigation which is client side.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader