GenericObject - getResultCountByCondition

GenericObject - getResultCountByCondition

Description :

This command sets a simple property condition, then retrieves the count of all the class instances that match this condition.

The following arguments define the property condition -- fullyQualifiedName, propName, operator, and propValue.

For a list of the values you can use for operator, see the Condition : createPropertyConditionCLI command.

Return type : Integer

Command Input :

Variable Name

Variable Type

Description

fullyQualifiedName

String

Fully qualified name of the model object.

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 you how to retrieve a count of the users whose NAME property is not set to null.

Script





GenericObject getResultCountByCondition "Class://SystemObject/User" "NAME" "does not equal" "" 



Was this page helpful? Yes No Submitting... Thank you

Comments