# Table

Tables allow you to display the output of APIs and scripts in rows and columns. Each object returned by the data source will create a row within the table. You can customize the columns of the table.&#x20;

## Selecting a Data Source

Both APIs and Scripts are supported by tables. When selecting an API, the API will be executed each time the page is loaded. When selecting a script, the last job run of the script will provide the output.&#x20;

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2FSHCK8b5fOqzVgTWjEwMY%2Fimage.png?alt=media\&token=02fefa00-f47f-4ea9-9ac7-36363f6ab421)

When columns are not defined, all the properties of the objects will be displayed.&#x20;

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2FWoqnvR8nnfRZtypP3OW5%2Fimage.png?alt=media\&token=d3eaf40a-3014-43cb-9fa7-bd2d8f7a86cd)

## Customizing Columns

You can customize the columns that are selected when displaying data.&#x20;

### Basic

Basic columns will select the properties defined and display the text.&#x20;

In this example, we are selecting the name and service type from a call to `Get-Service`.

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2FK8kgp6gvYOrWnrsF46MX%2Fimage.png?alt=media\&token=abc0cad6-f6be-4747-bb26-6fae3a48b8b7)

The resulting table only has these two properties displayed.&#x20;

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2F1P1FBBEe4Dy5wFToxq1n%2Fimage.png?alt=media\&token=1e2a2aa9-e2d9-4cc5-a3d3-b95cab2f1aa4)

### Buttons

Buttons can be added to columns to provide functionality for each row. Clicking the button will provide the target with the row data via the `$InputObject` parameter.&#x20;

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2FEDuGn2o4ixmXyjMXZTEc%2Fimage.png?alt=media\&token=d986e033-67b2-4f53-b975-4b5ec680e37c)
