---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "Room - Generate All Documents Flow Action"
description: "Regenerate document-template items in an existing Room."
contentType: "reference"
audience: "admin,developer"
---

# Room - Generate All Documents

Regenerate document-template items in an existing Room.
The namespaced Apex action name is `rooms__RoomGenerateDocumentsAction`.
Check action availability and input fields in your installed package.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | Yes. The action waits while document generation requests are made. |
| Record writes | Updates Room and Item generation state after the requests. Merge-field errors can create DialogueOne Event records during preparation. |
| Queued work | No explicit background job is started by this action. Verify each requested document result. |
| Email | No email is sent by the action. |

The Room must contain valid template items and a valid source record. Signed template items are not regenerated.
Success means the action did not return an exception. It does not prove that every template item generated a document.
Check the Room and each Item status after execution.

## Inputs

**Required** describes the Flow input setting. The processing rules above also apply.

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `roomId` | Room ID | Yes | The existing Room containing the document templates. |

## Outputs

| API name | Flow label | Meaning |
| --- | --- | --- |
| `success` | Success | Whether the action returned without an exception. Inspect individual Item results. |
| `message` | Error Message | An exception message when supplied. |

## Configure the Flow

1. Select the Room whose templates must be generated.
2. Review transaction control before the action.
3. Store Success and Error Message. Inspect each document result before later delivery.

Review the Flow context, Apex action access and the object and field permissions needed by this operation.
Record writes can run other Salesforce automation.

## Troubleshooting

**Uncommitted work pending.** Check earlier writes, events and queued work. Merge-field error logging can also create pending work before the callout.

**Some documents did not regenerate.** Inspect signed status, template Files, merge settings and each Item result.

**Generation result is uncertain.** Inspect the existing documents before repeating generation.

See the [Flow action index](/content/build/flows/index.md) for transaction guidance and related actions.
