---
title: "admGetSpace"
canonical: "https://support.appfire.com/space/PSCONF/15307172/admGetSpace"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admGetSpace(spaceKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns an instance of CSpace struct, takes a space key as a parameter.

Returns an instance of CSpace struct, takes a space key as a parameter.

## Return Type

**[CSpace](https://appfire.atlassian.net/wiki/spaces/PSCONF/pages/15303915)**

Returns the space properties using the predefined CSpace structure.

## Example

```javascript
CSpace space = admGetSpace("TST");
runnerLog("Id: " + formatNumber(space.id, "####"));
runnerLog("Key: " + space.key);
runnerLog("Name: " + space.name);
runnerLog("Description: " + space.description);
runnerLog("Creator: " + space.creator);
runnerLog("Created: " + formatDate(space.created, "MM/dd/yyyy"));
runnerLog("Created: " + formatDate(space.updated, "MM/dd/yyyy"));
```

## See also

> Macro (contentbylabel)