getCustomersObjects
Syntax | getCustomersObjects(serviceDeskId[, displayNameOrNameOrEmail]) | Package |
|
Alias |
| Pkg Usage |
|
Description
Returns an array of JUser structures
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
serviceDeskId | number | Yes | The ID of the service desk for which the customers will be retrieved |
displayNameOrNameOrEmail | string | No | A string that fully or partially describes a customer's name, or display name, or email - used for filter the customers |
Return Type
Examples
Example 1
return getCustomersObjects(1);Returns an array of JUser structures.
Example 2
Returns an array of JUser structures, filtered by their name, display name or email using the string "John".
return getCustomersObjects(1, "John");