> For the complete documentation index, see [llms.txt](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/plugin-front-end-actions/firestore/batch-operations/batch-operation-commit.md).

# Batch Operation Commit

This action commits a batch of database actions created from "[Batch operation constructor](/firebase-auth-firestore-and-storage-plugin/plugin-front-end-actions/firestore/batch-operations/batch-operation-constructor.md)" actions with the same "batch ID". If no batch exists or it was already committed, it will result in an error.

***

## <mark style="color:blue;">Inputs and Settings</mark>

<div align="left"><figure><img src="https://284736847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiWu3FezEjWxrPbkf8zIP%2Fuploads%2FNpYGogAOBH6Pe6ZuQglU%2Fimage.png?alt=media&amp;token=c78ccf1b-1cd4-44fb-950f-ac9d8c18acc2" alt=""><figcaption></figcaption></figure></div>

### Batch ID

The ID you gave to the batch on the "constructor" actions.

### Trigger ID (optional)

This will link the action with a [Action Listener](/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener.md) of the same ID.&#x20;

If left blank, all listener on the page with blank ID's will be triggered at the same time, so we suggest to always define a Trigger ID.

If all operations are completed successfully, it will trigger the [Batch Committed](https://estare.gitbook.io/firebase-auth-firestore-storage-plugin/plugin-elements/firebase-action-listener#batch-operation-committed) event. Otherwise, it will tigger and error.

***

## <mark style="color:blue;">Triggered events</mark>

Those events are triggered by an [Action Listener](/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener.md) with the same ID as the [Trigger ID](#trigger-id-optional) provided on the action.

* Batch Committed (if the action was successful)
* Error in Action (if an error occurs)
