SmartDepotGroup - createGroup
SmartDepotGroup - createGroup
Description :
This command creates a smart depot group with one condition. For a complete list of the operator strings, see the SmartServerGroup : addCondition command.
This command returns a handle to the newly created group.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
parentGroupName | String | Fully qualified path to the parent group. |
groupName | String | Name of the smart group you want to create. |
groupDescription | String | Description of the smart group you want to create. |
propClassName | String | Property Class name to be used in the smart group condition. |
propName | String | Property name to be used in the smart group condition. |
operator | String | Operator string to be used in the smart group condition. |
propValue | String | Property value to be used in the smart group condition. |
Example
The following example shows how to create a smart group called allNSH in the /root group. This new group has the condition to select all NSH scripts whose names start with "nsh"
Script
SmartDepotGroup createGroup /root allNSH "all NSH scripts" "Class://SystemObject/Depot Object/NSHScript" Name "starts with" "nsh"