---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "Close a Document Room Flow Action"
description: "Set matching Rooms inactive and archived."
contentType: "reference"
audience: "admin,developer"
---

# Close a Document Room

Set matching Rooms inactive and archived.
The namespaced Apex action name is `rooms__RoomCloseAction`.
Check action availability and input fields in your installed package.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | No API callout is made by the action. |
| Record writes | Updates matching Room records: Active becomes false and Archived becomes true. Related record automation can run. |
| Queued work | No background job is explicitly started by the action. |
| Email | No email is sent. |

Master Record ID is a required Flow input. Document Room ID can also be supplied.
When both selectors are supplied, Rooms matching either selector can be changed.
This action can affect more than one Room related to the master record.

## Inputs

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

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `masterRecordId` | Master Record ID | Yes | Required master business record. All accessible matching Rooms can be selected. |
| `roomId` | Document Room ID | No | Optional additional Room selector. It does not restrict the Master Record selector. |

## Outputs

This action returns no Flow outputs. Connect its Fault path and verify the resulting records or delivery separately.

## Configure the Flow

1. Confirm the master record and intended Room scope.
2. Supply the selectors.
3. Connect the Fault path and verify the resulting Room status.

Review the Flow context, Apex action access and the object and field permissions needed by this operation.
Record writes can run other Salesforce automation.
For API work, also review the configured Salesforce API connection user's required access.

## Troubleshooting

**No Room changes.** Check the selected IDs and the running user's Room access.

**More than one Room changes.** The action selects Rooms by Room ID or by Master Record ID. Review all Rooms related to that record.

**A later callout reports uncommitted work.** The Room update is pending work in the calling Flow transaction.

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