GetFirstChildListID

Description

Returns the identifier (ID) for the first sub item of the directory with the passed ID.

Syntax

GetFirstChildListID (ParentID : <Integer>, ListType <String>): <Integer>

Parameters

ParentID

The identifier for the item to get the first child ID of.

ListType

Defines the type of list from which the information should be queried. The table of the Chart and List types values lists all accessible.

Return Value

The ID for the first child directory of the passed directory ID. If the directory with the passed ID has no sub directories 0 is returned.

Example

$ChildItemID = $SOS.GetFirstChildListID($ParentID, "ExtensionsList") #PowerShell
ChildItemID = SOS.GetFirstChildListID ParentID, "ExtensionsList" 'VBS

The variable “ChildItemID” is set to the ID of the first sub item if the item with the ID “ParentID”.