Name
sn_ex_sp.PortalExtensibleNavigationAjax
Description
No description available
Script
var PortalExtensibleNavigationAjax = Class.create();
PortalExtensibleNavigationAjax.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
syncExtensibleMenuItems: function() {
var isSync = false;
var portalExtensibleNavRecordId = this.getParameter('sysparm_sysId');
var gr = new GlideRecord('sn_ex_sp_portal_extensible_navigation');
gr.get(portalExtensibleNavRecordId);
if (!gs.nil(gr)) {
var portalExtensibleNavigation = new sn_ex_sp.PortalExtensibleNavigationUtil();
isSync = portalExtensibleNavigation.syncPortalExtensibleNavItems(gr);
if (isSync) {
gs.addInfoMessage(gs.getMessage('Sync complete. If there were updates in the service portal menu or root topics in the active taxonomy, they\'re in this list now.'));
} else {
gs.addErrorMessage(gs.getMessage('Sync incomplete. There was a problem syncing the menu items. Please try again.'));
}
}
return isSync;
},
type: 'PortalExtensibleNavigationAjax'
});
Sys ID
3e372437778f11105b8dddad7c5a995d