Configure Inputs with CustomTableRenderer
Use the CustomTableRenderer field to let developers review and edit a list of records, including nested child records, as an inline-editable table in a Workflow form.
Many APIs return several records in one response, such as a list of repositories, security groups, or services. Other workflow inputs handle that response one value at a time, for example, SelectFieldFromApi picks a single item from it, and a plain array input renders each record as a stack of form fields that you cannot prefill from an API. Developers end up editing one record at a time and running the workflow once for each record.
CustomTableRenderer renders the whole list as an editable table inside the Workflow form. The field can load rows from an API, and lets developers search, sort, add, edit, duplicate, and delete rows in place. When the developer submits the form, the workflow receives every edit, addition, and deletion together as JSON, in a single workflow execution.

When to use CustomTableRenderer
Use CustomTableRenderer when the input is a collection of objects that a developer has to review, compare, or change before the workflow runs.
A single text, dropdown, button, or JSON value
A list of plain values, such as regions or tags
An array input, or CustomField with fieldType: dropdown and multiSelect: true
A list of records with several fields each, often prefilled from an API, edited and submitted together
CustomTableRenderer
Before you begin
Make sure you have the following in place:
Be familiar with configuring workflow inputs and the
spec.parametersstructure ofworkflow.yaml.To load rows from an API through a backend proxy, configure a Backend Proxy first. The proxy holds the target base URL and the authorization headers. You need one only when the API is on another origin or needs authorization that the backend adds. A table that developers fill in by hand, or that the workflow pre-fills, needs no proxy.
How the configuration fits together
Every CustomTableRenderer property on this page follows the same model: JSON Schema defines the row data, and ui:options defines how the table presents it.
JSON Schema (
type,items,required,properties) is the data contract. It defines what a row contains, which values are valid, and the shape of the value that the workflow submits.UI options (
ui:field,ui:options) are the presentation. They define where the rows come from, which columns the table displays, how each cell is edited, and which table actions are available.
Keep each column key in sync with a property name under items.properties. The table validates and submits rows from the schema, and displays only the columns you declare.
The following skeleton labels each part. Use it as a map while you work through the steps below. For the full rules that connect schema to columns, the schema-to-column type pairing, and nesting limits, go to Configuration model.
Build a table step by step
Each step on this page adds one capability to the same users table. Step 1 gives you a complete workflow to register. The later steps change only the users property, so replace that property in your workflow and run it again to see the result.
A table that developers fill in by hand
Rows fetched from a JSON file or an API
Checkboxes, dropdowns, date pickers, and rules
A child table of orders under each user
Paging, actions, review view, and custom text
Values passed to actions and pipelines
A table gets its rows in one of three ways:
Manual: Developers add and edit rows by hand, as in Step 1. The field makes no network calls, so it needs no proxy.
Pre-filled: The workflow passes the rows in through its form values. The field makes no network calls, so it needs no proxy.
API fetch:
ui:options.pathfetches the rows, as in Step 2. This is the only way that makes network calls. It goes through a backend proxy, or calls the API directly withuseDirectApi: true.
However the rows arrive, Steps 3 to 5 work the same way, as the table handles cell editors, nested rows, paging, and labels in the browser.
Step 1: Render an editable table
Start with a table that has no data source. With no path, the table starts empty and developers add rows by hand.
Register the workflow, and then open it. The table displays an empty state and an Add table row button.

Click Add table row to insert a new row at the top of the table, already in edit mode. Fill in the cells, and then click the tick to save the row, or the cross to discard it.
Step 2: Load rows from an API
To prefill the table, point it at an API or a hosted JSON file through a backend proxy.
Host the data. The following example uses a JSON file in a Git repository. Save the following content as
users-demo.json. The same file serves every later step and the first complete example.Declare a backend proxy endpoint that points at the folder that holds the file. In IDP, go to Configure → Plugins → Configure Backend Proxies, add the following endpoint, and then click Save Configuration. Replace the placeholders with your repository details.
Add
pathandarraySelectorto theusersproperty.
pathis the request path through the backend proxy.arraySelectorpoints to the value in the response that becomes the table rows. In this file, the rows are under theuserskey. OmitarraySelectorwhen the response body is itself the array.selectoris an accepted alias.
When the developer opens the step, the field fetches the rows and displays a loading skeleton until the request completes. If the step already holds row data, for example after the developer goes back to an earlier step, the table keeps that data and does not call the API again until the developer clicks Refetch data.

The API response does not have to be an array of objects. Go to Supported response shapes for the other formats the table accepts. To send query parameters, headers, a request body, or details of the signed-in user, go to Request options.
Step 3: Add cell editors and validation
The column type selects the editor that appears when a developer edits a cell. Declare a typed column for each field, and declare the matching type in the schema as described in Match schema types to column types.
Column type
Editor
Grid display and submitted value
string
Text input
The text
number
Text input that accepts only numbers
The number
boolean
Checkbox
true or false
select
Dropdown of the configured options
The stored value, not the option label
date
Date picker
yyyy-MM-dd
datetime
Date and time picker
The grid displays yyyy-MM-dd HH:mm. The value is an ISO timestamp.
json
Compact text area
The JSON value. The content must be valid JSON.
The following users property adds a locked number, a checkbox, a dropdown with a default, a date, two date-and-time columns, and two JSON columns, and validates the email format.
Keep API-owned values read-only
Set editable: false on a column for values that the API owns, such as timestamps or identifiers. Developers can read the cell but cannot change it, and that includes the rows they add: a new row leaves the cell empty. A datetime column also displays epoch-millisecond numbers, such as 1760952600000, as a date and time.
Under items.properties:
Under ui:options.columns:

Where validation rules live
The table checks a row when the developer clicks the tick to save it. The rules come from both halves of the configuration:
A cell must have a value
required: true on the column
The row stays in edit mode and the cell displays an error
A field must exist on every row
The field key under items.required in the schema
The row fails schema validation
A string must not be empty
minLength: 1 on the schema property
The row fails schema validation
A string must have a set length or format
minLength, maxLength, or pattern on the schema property
The row fails schema validation
A number must be within a range
minimum or maximum on the schema property
The row fails schema validation
A value must come from a fixed list
enum on the schema property, and the same values in the column options
The row fails schema validation
A value must be a number or valid JSON
type: number or type: json on the column
The row stays in edit mode and the cell displays an error
The table must have at least one row
minItems: 1 on the table property, next to type: array
The form displays an error for the whole table
When a save fails, the row stays in edit mode, a red left border marks the row, and the error appears under each failing cell. Rows loaded from the API that do not match the schema display a red highlight, and developers can list them with the Errors filter. The form also validates the whole table against the schema when the developer clicks Next. The developer cannot continue until every active row passes, so they fix or delete each red row first.
Declare required fields on both halves: required: true on the column catches the empty cell while the developer edits, and items.required in the schema keeps rows loaded from the API honest.

Step 4: Add nested rows
Add a child table when each row owns a list of related records, such as the orders that belong to a user. A child table needs two changes, one in each half:
In the schema, add a property under
items.propertiesthat is an array of objects, with its ownproperties.In
columns, add a column with the samekey,type: nested, and its owncolumnslist.
The following snippet adds an orders child table to each user. The lines marked # new are the additions to the Step 3 property.
The data for each user then carries an orders array, for example:
A developer clicks the chevron (>) on a user row to expand the orders table under it.

To go deeper, repeat the same two changes inside the child: add an array-of-objects property to the child schema, and add a type: nested column to the child columns. The complete example nests shipments under orders, events under shipments, key-value pairs under events, and details under the key-value pairs.
How nested tables behave:
Each nested table supports the same inline add, edit, duplicate, delete, and undo actions as the top-level table.
A nested table has a + Add bar at the bottom that appends a new child row in edit mode.
Each level has a darker background and a light blue left rail, so the depth is visible at a glance.
Search, pagination, selection, and the status filter belong to the top-level table. Search also matches values inside nested rows.
You cannot sort nested columns.
An empty child list displays an empty state. The expand control appears when the row has children or when adding is allowed, so developers can create the first child record.
Nesting goes up to four levels. Beyond that, expanding a row opens a JSON editor that validates the content against the
itemsschema of that property. The review step displays that data as read-only JSON.
Step 5: Tune table behavior and labels
Every table action is on by default. Set an option only to change the page size or to turn off part of the experience.
To make the table view-only, set readOnly: true. The table then hides the actions column, the status filter, and the row selection checkboxes.
To let developers update existing records but not add or remove any, turn off the actions that change the row list. Lock the columns that identify a record with editable: false.
Go to Table behavior options for the full list.
Use the language of your workflow
Use labels to replace the generic table text with terms that match the records, such as Add user instead of Add table row. Keys that you do not set keep their default text.
rowCount and deleteSelectedConfirm support the {{ count }} placeholder, and rowCount also supports {{ deleted }}. A rowCount that includes {{ deleted }} displays it even when nothing is deleted, for example 6 users (0 removed). Go to Labels for every key and its default text.

Step 6: Use the table data in workflow steps
When the developer submits the workflow, the field value is an array of row objects in the shape of the schema. Each row keeps every field it loaded with, including fields that have no column and no schema property. The table leaves out deleted rows at every nesting level, and it never includes its internal added or deleted markers. The value holds every active row, not only the rows the developer changed, so a later step that applies changes receives the full list.
For example, Ben's row from users-demo.json arrives with every field from the file, including the country, tags, and lastSeen fields that Step 4 declares no column for:
Read the value in later steps with ${{ parameters.<propertyId> }}, and use index and key access to reach a single row or a nested value.
The second step uses the Nunjucks dump filter, which turns the whole table into JSON text. dump(2) indents it by two spaces, so the log is easy to read.

Pass the table to a Harness pipeline
Pipeline variables hold strings, so convert the table to a JSON string with dump in the inputset of your trigger:harness-custom-pipeline step. In the pipeline, declare a variable of type String with the same name, such as users_json.
As each row keeps every field the API returned, the string can be large when the API returns many fields for each record. Check the size before you pass a long table, or call an API endpoint that returns fewer fields.
The pipeline reads the JSON with <+pipeline.variables.users_json>. The apikey input needs a token property with ui:field: HarnessAuthToken on the form. Go to Example: Send the edited table to a pipeline for the full workflow and a pipeline that receives the table.
What developers see in the table
This section describes the table from the point of view of a developer who fills in the workflow, so that you know what your configuration produces.
Toolbar
The table has the following controls:
Search filters rows as the developer types, across the visible columns and nested values. Every word in the search must match.
Status filter lists all rows, newly added rows, deleted rows, or rows with errors. The new, deleted, and errors filters apply only to top-level rows.
Row count displays the number of active rows. When
allowDeleteis on and deleted rows exist, it adds a deleted count, for example12 table rows (2 deleted).Refetch data reloads the rows from the API after a confirmation, replaces the local edits, and clears the filter, the selection, and the expanded rows.
Add table row inserts a new row at the top of the table.
Selecting a column header sorts the table in ascending order, then descending order, and then removes the sort.

Inline editing
The table works like a spreadsheet. There are no dialogs for adding or editing rows.
Edit turns the cells of a row into editors in place. Only one row per table level is in edit mode at a time.
The tick validates and saves the row. The cross cancels the edit and restores the original values.
Add inserts a new row in edit mode, prefilled with the
defaultValueof each column. Cancelling a new row removes it without leaving a blank row behind.Duplicate copies a row, including its nested rows, and inserts the copy directly below the original. The action is available at every table level.
Row states
The table tracks every change on the row, so developers can confirm what changed before they submit.
Row loaded from the API
A normal row
Yes
Row added or duplicated
A green highlight. If the new row fails the schema, the red highlight replaces the green one.
Yes, without the new-row marker
Row loaded from the API, then deleted
An orange removed state. The row action changes to Undo delete.
No
Newly added row deleted
The row disappears immediately
No
Row that fails the schema
A red highlight. The table does not validate deleted rows.
Yes, unless the row is deleted
Row in edit mode
A blue highlight, and a red left border when its validation fails
Not until it is saved
Bulk actions follow the active filter. With all rows or error rows listed, the selection supports Delete selected table rows. With new rows listed, it supports Undo added rows. With deleted rows listed, it supports Undo deleted rows.
Local edits, including added and deleted rows, stay in place when the developer leaves the step and comes back, unless the form value is replaced.

Layout
The table has the following layout behaviors:
The table scrolls horizontally when the columns do not fit, instead of squeezing the cells.
The selection and expand columns stay pinned on the left, and the actions column stays pinned on the right.
The top-level header stays in view during vertical scroll. Each nested table has its own horizontal scroll.
Review step
The review step displays the field as a read-only table with the same columns, labels, and nested expand behavior, up to a depth of four. The review table truncates long cell text. The review table has no search, editing, pagination, selection, or status filter.
When allowJsonView is on, which is the default, a Table and JSON toggle appears above the review table. The JSON view is a read-only, syntax-highlighted, copyable view of the exact value that the workflow submits. Set reviewDefaultView: json to open the review on the JSON view.


Complete example
Example: Users with nested orders
The following workflow loads the users-demo.json file from Step 2, nests orders, shipments, tracking events, key-value pairs, and details under each user, and logs the submitted table. Alice's first order reaches the fifth level, where the table opens a JSON editor. The workflow uses custom labels and a locked Id column with a default value for new rows. It expects a backend proxy endpoint named test-data that serves the file.
Example: Send the edited table to a pipeline
The following workflow loads five users from DummyJSON, lets developers edit and delete them, and sends the whole table to a Harness pipeline as one JSON string in a single run. It expects the dummyjson backend proxy endpoint from Step 2, and the pipeline that follows it.
Replace <PIPELINE_URL> with the address of the pipeline in Pipeline Studio. The pipeline has one String variable, users_json, and one Shell Script step that prints what it receives. Replace <PROJECT_ID> with your project identifier.
The Print table JSON step log displays the JSON list of users: deleted users are missing, and edited values appear as the developer saved them.
Reference
Configuration model
Three rules connect the JSON Schema half of a CustomTableRenderer property to its UI options:
JSON Schema decides what is valid and what is submitted. The table validates each row against
itemsand submits an array of row objects.columnsdecides what the developer sees. Each columnkeymust match a property name underitems.properties. The table displays only the columns you declare. A field without a column stays in the row, so it still reaches the submitted value. When you omitcolumns, the table infers the columns from the loaded rows.Child records repeat the same pattern one level down. A property that is an array of objects in the schema becomes a child table when its column has
type: nestedand its owncolumnslist.
The title of a schema property is the field name in the schema. The column header comes from the column label, and falls back to key when you omit label.
Match schema types to column types
Use the following table to declare each field on both halves. The left column is what you write under items.properties, and the right column is what you write in the matching entry under ui:options.columns.
Text
type: string
type: string (default)
Number
type: number
type: number
Checkbox
type: boolean
type: boolean
Dropdown
type: string with enum
type: select with options
Date
type: string with format: date
type: date
Date and time
type: string with format: date-time, or type: number for epoch milliseconds
type: datetime
JSON object
type: object
type: json
List of plain values, such as tags
type: array with items.type: string
type: json
Child table
type: array with items.type: object and properties
type: nested with its own columns
Required value
Key listed under items.required, plus minLength: 1 for strings
required: true
Nesting at a glance
A row can hold a child table, and each child row can hold its own child table. The complete example on this page uses the following structure: all four nested levels, plus a fifth level that opens as a JSON editor.
Column options
Each entry under ui:options.columns accepts the following fields.
key
Yes
Property name on the row object. Must match a property under items.properties.
label
No
Column header. Falls back to key.
type
No
string (default), number, boolean, select, json, date, datetime, or nested.
options
For select
Dropdown values as label and value pairs. The grid displays the stored value.
columns
For nested
Column list for the child table. Accepts the same fields as this table.
required
No
Marks the cell as required during inline editing.
editable
No
When false, developers cannot edit the cell inline.
sortable
No
When false, developers cannot sort the column. Nested columns are never sortable.
searchable
No
When false, search ignores the column.
hidden
No
Hides the column from the grid and from search.
width
No
Column width in pixels, for example 240.
placeholder
No
Placeholder text in the cell editor.
defaultValue
No
Value that a new row starts with.
Table behavior options
path
Not set
API path that loads the rows. With no path, the table starts empty and developers add rows by hand.
arraySelector or selector
Whole response
Path to the value in the API response that becomes the table rows.
search
true
Displays the search box.
sortable
true
Enables sorting from the column headers.
pagination
true
Displays pagination when the filtered table has rows.
pageSize
20
Rows per page. Developers can also pick 5, 10, 20, 50, or 100.
allowAdd
true
Displays the add action in the toolbar, and the + Add bar under nested tables.
allowEdit
true
Displays the inline edit action.
allowDelete
true
Displays the delete action and the deleted count in the row count.
allowDuplicate
true
Displays the duplicate action on rows at every table level.
allowUndo
true
Displays undo for deleted rows and the bulk undo actions.
statusFilter
true
Displays the all, new, deleted, and errors filter.
refetch
true
Displays Refetch data. The confirmation warns that the reload overwrites local changes.
selectable
true
Displays the row checkboxes and enables bulk delete and bulk undo.
readOnly
false
Makes the table view-only and hides the actions column, the status filter, and the selection.
showRowCount
true
Displays the row count in the toolbar.
allowJsonView
true
Displays the Table and JSON toggle on the review step.
reviewDefaultView
table
The view that the review toggle opens on, table or json. Ignored when allowJsonView is false.
title and description
From the schema
Override the label and help text that the field takes from the schema.
Request options
useDirectApi
false
When true, the field sends the request same-origin with cookies, without the backend proxy. The API must accept cookie authentication from IDP.
params
Not set
Query parameters added to the request.
request.method
GET
GET, POST, PUT, or PATCH.
request.headers
Not set
Extra request headers.
request.body
Not set
JSON body for POST, PUT, and PATCH.
appendUser
Not set
Copies the named fields of the signed-in user onto the request.
The following table reads a text field on the same step to decide how many users to load:
path,params,request.headers, andrequest.bodyaccept Nunjucks templates. Use{{ parameters.<propertyId> }}or{{ formContext.<key> }}to read other fields on the step. The table waits to fetch until every referenced field has a value. After the first load, changing a referenced field does not reload the table: the developer clicks Refetch data to load rows for the new value. To avoid a load with a half-typed value, put the referenced field on an earlier form page.appendUser.locationisheadersby default, and acceptsheaders,query,body, or a list of those. The field skips empty user fields. Thebodylocation applies only toPOST,PUT, andPATCH. WhenappendUseris set, the table also waits for the signed-in user to load. Go to Pass user information to dynamic pickers for the available user fields.setContextDataruns after each fetch and after each edit. A plain string is a path into the current table value, such as0.ownerfor the owner of the first row. A string that contains{{ }}is a Nunjucks template, in whichvalueandresponseare the current table value, andparametersandformContextare the step values.
Supported response shapes
The value that arraySelector points to can take any of the following shapes. The field submits its value in the same shape. Declare the table property as type: array for a list of rows. With type: object, the field wraps a list as { "items": [ ... ] }.
Array of objects
One row per object
The same array
Array of plain values
One row per value, in a value column
The same array
Object whose values are objects
One row per entry, with a key column plus the object fields
The object, rebuilt from the key of each row
Object whose values are plain values
Rows of key and value
The object, rebuilt from those pairs
Labels
Set these keys under ui:options.labels.
addRow
Add table row (the top-level add button)
duplicateRow
Duplicate
deleteRow
Delete (also the title and the confirm button of the delete confirmation)
deleteConfirm
Delete this table row?
deleteSelected
Delete selected table rows
deleteSelectedConfirm
Delete the {{ count }} selected table rows?
undoDelete
Undo delete
undoDeletedRows and undoAddedRows
Undo deleted rows, and Undo added rows
actions
Actions
refetchRows
Refetch data (also the title and the confirm button of the refetch confirmation)
refetchConfirm
Fetch the latest table data from the API? Your local changes will be overwritten.
searchPlaceholder
Search table rows
emptyTable
No table rows yet. Click Add button to add a row.
filterAll, filterNew, filterRemoved, and filterErrors
Text of the status filter options
selectAll and selectRow
Accessible labels of the selection checkboxes
rowCount
{{ count }} table rows
expandRow and collapseRow
Accessible labels of the expand and collapse chevron
Frequently asked questions
Last updated
Was this helpful?