GET BG name dynamically

var bg = new Array();
 
//Get the tenant and Business Group
var tenant = System.getContext().getParameter("__asd_tenantRef");
var subtenantRef = System.getContext().getParameter("__asd_subtenantRef");
 
//Get the Cafe details
var host = vCACCAFEHostManager.getDefaultHostForTenant(tenant, true);
 
//Correlate the ID to a name
var mysubtenant = vCACCAFEEntitiesFinder.getSubtenant(host, subtenantRef);
var name = mysubtenant.name;
bg.push(name);
 
//Return the Business group name
return bg;
Post a Comment (0)
Previous Post Next Post