Skip to content

GetCustomInventoryCategoriesAndEntries

Gets all Custom Inventory categories and entries, that is, the sections and value names that exist in custom inventory. Use it to find the values to use with Set custom inventory.

GetCustomInventoryCategoriesAndEntries() as ArrayList

None

The function returns an array of Custom Inventory categories and entries. Each element in the array is a joined line with the character defined with Set splitter.

  • Category
  • Entry
  • Datatype
  • “I” = Integer
  • “T” = Time
  • “S” = String
  • “N” = Text
Set oCMS = CreateObject("CapaInstaller.SDK")
Set aList = CreateObject("System.Collections.ArrayList")
wscript.echo oCMS.SetInstanceManagementPoint("1")
Set aList = oCMS.GetCustomInventoryCategoriesAndEntries()
for each item in aList
wscript.echo item
next