Custom tables provide a flexible mechanism for storing data directly in the system. These tables are easily accessible from workflow scripts, enabling dynamic data manipulation and retrieval. This offers a significant performance advantage over repeatedly querying external databases or APIs, as accessing data from custom tables is considerably faster.
Creating a custom table involves providing a name and defining its columns. All columns in a custom table are treated as text strings.
Cells in custom tables can be populated in two ways: manually adding the values or using an SQL query.
Once created, you can add, edit, query, and delete rows within the table using the built-in interface. You can export the table data to a CSV file, modify it externally using tools like Microsoft Excel, and then re-import the updated data back into the table. This bulk import/export functionality simplifies data management for large datasets. The system automatically uses Object IDs (OIDs) to identify each row. If an OID is present during import, the row is updated; otherwise, a new row is inserted.
Custom tables can be added to a form by associating them with a custom field. The custom field can have any type that can display a list, such as Custom Table Controller, Pick List, or Radio Button.
Custom tables can be accessed from scripts using the getCustomTable REST object method. This method allows you to execute queries against custom tables, retrieving data for use within your workflow scripts. This allows you to dynamically populate fields or make decisions based on data stored in your custom tables.