Name

sn_ace.ACEAppBuilderAjaxUtils

Description

No description available

Script

var ACEAppBuilderAjaxUtils = Class.create();
ACEAppBuilderAjaxUtils.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

  updatePageBundle: function() {
      var pageId = this.getParameter('sysparm_pageId');
      var contentBlockMetadata = new sn_ace.ACEAppBuilderUtilV2()._getContentBlockMetaData(pageId);
      if (contentBlockMetadata && contentBlockMetadata.contentBlocks) {
          var bundle = new global.ACEAppBuilderGlobalScopedUtil().getCompressedPageBundle(contentBlockMetadata.contentBlocks);
          if (bundle) {
              var gr = new GlideRecord('sn_ace_page');
              var result = null;
              if (gr.get(pageId)) {
                  gr.setValue('bundle', bundle);
                  if (gr.canWrite()) {
                      result = gr.update();
                      if (result) {
                          return result;
                      }
                  }
              }
          }
      }
      return null;
  },

});

Sys ID

a08b4358c3e1211044104fb9c840dd33

Offical Documentation

Official Docs: