Software Asset Management: global.SAMPremiumUtils().getLicenseWithAvailableRights

NinoG
Tera Contributor

We have this on a script and we cannot find what this function does and what tables it interacts with.  Can anyone help us find out so we can configure the necessary data needed?

 

var licId = new global.SAMPremiumUtils().getLicenseWithAvailableRights(inputs_sam_software_model_sys_id, inputs_entitlement_type);

1 REPLY 1

dreinhardt
Tera Sage

Hi @NinoG,

the mentioned script "SAMPremiumUtils" is part of the SAMP core and "Intellectual property" by ServiceNow.

That's one reason why the script is protected and not available for customers to get a look into it.

It suggests that this script was created for you by a ServiceNow employee with access and insights.

 

From the names, it can be assumed that the result is probably the usage rights that are still available or that it generally only outputs a true/false as a check for the software model. In what other context is the script and the variable “var licld” used?

 

  • Software Models - cmdb_software_product_model
  • Software Entitlements - alm_license

 

dreinhardt_0-1728499240763.png

 

Best, Dennis

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.