Name
global.ITBMSubscriptionCountHelper
Description
No description available
Script
var ITBMSubscriptionCountHelper = Class.create();
ITBMSubscriptionCountHelper.isAgile0DollarSKUAvailable = function() {
var agile0DollarProductCodes = ["PROD12492", "PROD12730", "PROD14284", "PROD14388"];
var agile0DollarProductsGr = new GlideAggregate("license_details");
agile0DollarProductsGr.addAggregate('COUNT');
agile0DollarProductsGr.addEncodedQuery('start_date<=javascript:gs.endOfToday()^end_date>=javascript:gs.beginningOfToday()^product_codeIN' + agile0DollarProductCodes.join(','));
agile0DollarProductsGr.query();
if (agile0DollarProductsGr.next() && agile0DollarProductsGr.getAggregate("COUNT") > 0)
return true;
return false;
};
Sys ID
ce2cb2e2cb7730100012dcbcf7076d1c