---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "HTML Table Action Flow Reference"
description: "Create an HTML table from records related to a Salesforce parent record."
contentType: "reference"
audience: "admin,developer"
---

# HTML Table Action

Create an HTML table from records related to a Salesforce parent record.
The namespaced Apex action name is `rooms__HTMLTableAction`.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | No HTTP callout is made. |
| Record writes | Reads records and formats HTML. It does not save the HTML to a record. |
| Platform event | The action does not directly publish a platform event. |
| Background work | No background job is submitted. |
| Email | No email is sent. |

## Inputs

Required describes the Flow input setting. Additional configuration rules can still require a value.

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `recordId` | Record ID (Parent Record. Replaces {Id} in related query) | No | Required for generation although the Flow input is not marked required. Replaces `{Id}` in the related query. |
| `childObjectType` | Child Object Type (Name of related list object type itemized in table) | No | Required API name of the queried child object. |
| `tableQuery` | Related Table Query (SELECT Fields FROM ChildObject WHERE LookupField={Id}) | No | Required query selecting the table fields and relating child records to `{Id}`. |
| `tableColumnLabels` | Table Column Labels (CSV Label Names) | No | Required comma-separated column labels. Match the number and order of column fields. |
| `tableColumnFields` | Table Column Fields (CSV API Names) | No | Required comma-separated field API names selected by the query. |
| `inlineTableStyle` | Inline CSS Table Style | No | Optional inline table CSS. Otherwise the normal table styling is used. |
| `alternateRowColor` | Alternate Row Color (default=#f8f9fa) | No | Defaults to `#f8f9fa`. Controls alternating row background color. |

## Outputs

| API name | Flow label | Meaning |
| --- | --- | --- |
| `success` | Success | Whether validation and table generation succeeded. |
| `message` | Error Message | Validation or query error details. |
| `htmlBody` | HTML Table Body (Output) | Generated HTML table markup. Save or use it in a later Flow step. |

## Configure the Flow

1. Select the parent record and child object.
2. Configure the related query using `{Id}` for the parent record.
3. Provide matching column labels and selected field API names.
4. Store Success, Error Message and HTML Table Body.
5. Use the HTML only after Success is `true`. Add a separate record-update step if it must be saved.

Confirm the Flow user's Apex action access and access to the records or Files used by this operation. Review the configured Salesforce API connection user's access when the action makes an API request.

## Troubleshooting

**A required input is missing.** Supply Record ID, Child Object Type, Related Table Query, Table Column Labels and Table Column Fields.

**Query execution fails.** Check object and field API names and the relationship to the parent.

**A cell is blank.** Check its field value and field selection. A field-formatting error can produce a blank cell without failing the entire table.

See the [Flow action catalog](/content/build/flows/index.md) for related actions and transaction guidance. Confirm that the action and input fields are available in the installed package.
