Skip to main content

Tables

Learn about tables in Actioner and how to configure them.


Overview

A data table is an organized collection of information, or data that is set up for easy access, management and updating the information. Tables are used for various data processing operations, the most basic being the Create, Read, Update, and Delete (CRUD) operations.

Tables in Actioner are scoped to the app they are added to, meaning that they can be accessed, managed or updated inside the app they belong to. Actions in a workflow can use tables to store, get, update or delete the necessary data. For example, when a time-off request is submitted in a HR app that works in Slack, you can store the data of the request in a table for future use.

You can use tables to:

  • Store and retrieve different types of data.
  • Perform aggregation, sorting, filtering, and other preprocessing operations for data analytics.
  • Safely store and persist information for future use.
  • Define the correlation between all the stored data.

Data within an app is modeled in rows and columns in a series of tables to make processing and data querying efficient. An app typically stores information in different tables containing specific pieces and types of data. For example, an e-commerce app could store details of their customers’ in one table and details of their orders in another.

The data stored in a table can then be easily accessed, managed, modified, updated, controlled, and organized. Actioner tables use a structured language for querying data.

Data tables

An app can contain multiple data tables. A table defines the structure and validation rules of the data it holds.

A data table is composed of fields and records.

You can think of fields as the columns in relational databases or the document properties in a non-relational database where a table correspond to a document. Similarly, records are the correspondent of rows in a relational database, or the values of the document properties in a non-relational database.

Tables are the templates or definitions for holding records. When a record in a table is created, meaning that fields have values assigned, these entities are called records. Records are instances of a table with specific field values. Each record is also a JSON document, namely key-value pairs.

When new data is added, new records are inserted into existing tables. Relationships can then be made between two or more tables by defining dependencies between them.

For an e-commerce app, you can design a table for your orders consisting of customer, product and purchase details field. You can design another table for your customers containing fields such as email, shipping, and billing addresses. Similarly, you can have a table for your product details. Instead of storing all the info in one table and having to update multiple fields when your customer updates their shipping address, you can connect the customer field in your orders table with customers table, or the product field in your orders table with product table.

Tables tab

To see the tables in your app or create new ones, navigate to your app on My apps page and go to Tables tab.

Only app admins can create new tables or update the existing ones.

Creating a new data table

  1. On Tables tab of your app, click + Add new table.

  2. Give a name to your table. You can optionally add a description.

Add a new data table

  1. By default, each table is created with an id field. id is automatically generated to identify a record in a table and it cannot be edited or deleted.

  2. To add new fields to your table, click + Add new field.

Add a new field

Available field types are text, email, URL, phone number, UUID, integer, decimal, date time, list, map, boolean and reference.

  1. Enter a name for your field and configure its properties.

Configure a table field

  • Select if the field will be required. While creating a new record in your table, required fields must be provided.

  • Select if the field will be read-only.

  • Set a default value that your field will take if the field value is not provided as input.

  • Set constraint length by entering a min and a max value for your field.

  • Set regular expression if you are looking to strengthen filtering of data and extracting information to your table records.

  1. You can add more fields by clicking + Add new field button. And you can navigate between your field by clicking on their name.

  2. Once all is set, save your data table.

Info

To add new records to your table, click Records button on Tables tab of your app.