GetCustomInventoryCategoriesAndEntries
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”GetCustomInventoryCategoriesAndEntries() as ArrayList
Parameters
Section titled “Parameters”None
Return value
Section titled “Return value”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
DataType (String)
Section titled “DataType (String)”- “I” = Integer
- “T” = Time
- “S” = String
- “N” = Text
Example
Section titled “Example”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 itemnext