Syntax
admGetSpaces(categoryName)
Description
Takes a category name and returns an array of spaces (CSpace structs) in that category.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
category name | string | yes | The name of the category used to retrieve all spaces within that category. |
Return type
Returns an array of CSpace structures containing the space properties.
Example
CSpace [] spaces = admGetSpaces("Products"); for(CSpace space in spaces) { print(space.name); }
Prints name of each space in the Products category in the logs.
See also