Syntax
admGetSpace(spaceKey)
Description
Returns an instance of CSpace struct, takes a space key as a parameter.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
space key | string | true | Name of space to retrieve. |
Return type
Returns the space properties using the predefined CSpace structure. Returned properties are:
Field | Type |
---|---|
id | number |
key | string |
name | string |
description | string |
creator | string |
created | date |
updated | date |
Example
CSpace space = admGetSpace("TST"); return space.name;
Returns space name
See also