# Working with Batch Approval

Batch Approval allows users to batch review and approve documents with less complex lifecycles. This feature uses the _Batch_ object and _Batch Approval_ object lifecycle to facilitate this process. Users relate documents to a _Batch_ record using the new **Create Batch** option within bulk document actions, then send the _Batch_ record through its own lifecycle. Configured entry actions within the _Batch Approval_ lifecycle can update the lifecycle states of related documents.



<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: An Admin must <a href="/en/gr/36606/">configure this feature</a> before you can use it.</p>
    </div>
  </div>
</div>



## Batch Approval vs. Change State Bulk Action

The advantage of using Batch Approval instead of the **Change State** bulk document action is that the set of documents does not need to be in the same initial lifecycle state or even share the same lifecycle. Vault even allows batches that include some documents already in the target state.

If an organization is exclusively using Batch Approval to review and approve documents, Admins don't need to configure user actions or workflows on the individual document lifecycle.

### State Types

Batch Approval can move documents from various lifecycles in a single action because it uses <a href="/en/gr/14560/">state types</a> in its configuration, rather than specific lifecycle states.

For example, VeePharm runs an approval workflow on a _Batch_ object record. When the record undergoes its state change to _Approved_, an entry action on that object state moves all related documents (all documents in the batch) into their own lifecycle's _Steady_ state (_Approved_, _Approved for Use_, etc.).

Batch Approval can move documents into any of the state types (_Steady_, _Obsolete_, _In Review_, etc.). All lifecycles for documents in the batch must have values specified for the target state type in order for an action to complete successfully.

## Example Usage: eTMF

In eTMF, some companies use an operating model that includes centralized review and TMF approval, which is distinct from "functional" approval. In this model, functional contributors upload files in order to submit them to the TMF. A centralized review team then checks the TMF documents and deems them to be accepted or rejected. Using the Batch Approval feature, functional contributors can send a batch of their documents at once for review and the centralized review team can act on the batch.

## Creating Batches

When you create a "batch" of documents, you're first creating a new Batch object record and then associating documents with that record.

### How to Bulk Add Documents

You can add a group of documents to a single batch using the <a href="/en/gr/18822/#create-batch">**Create Batch** bulk document action</a>.

### How to Add & Remove Individual Documents

There are two options for adding and removing individual documents. You can perform this action by editing document fields or from the **Documents** panel in the _Batch_ record details.

To add or remove an individual document from the record details:

  1. Navigate to the batch's details page.
  2. In the **Documents** section, click **Add**.
  3. Optional: Search to find a specific document or set of documents.
  4. Remove a document by clearing its checkbox.
  5. Add a document by selecting its checkbox.
  6. Click **Close** to exit the search dialog and save your changes.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: You can also use the <strong>Upload</strong> button in the related documents dialog to create a new document and add it to the batch.</p>
    </div>
  </div>
</div>



To add or remove an individual document from the Doc Info page:

  1. Navigate to the Doc Info page.
  2. Click **Edit** to open edit mode for the document fields.
  3. Remove a document by deleting the specific batch from the _Batch Number_ field.
  4. Add a document by adding the specific batch to the _Batch Number_ field.
  5. Click **Save**.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: In some Vault configurations, the <em>Batch Number</em> field is hidden or read-only. If you cannot see or edit the field, you cannot add or remove individual documents.</p>
    </div>
  </div>
</div>



## Changing States for Batch Documents

When you use Batch Approval to move documents to a new state, you don't perform any action directly on the documents. Instead, you move the _Batch_ record through an object workflow or directly into a new state through a _State Change_ user action. Entry actions on the _Batch_ record's state can move the related documents.

The options that you see for a _Batch_ object record will depend on your Vault's configuration.

For example, VeePharm configured their _Batch_ object to include a workflow which sends the _Batch_ record to an approver. When the approver completes the final task, Vault moves the _Batch_ record into _Approved_ state and moves all associated documents into the state associated with the _Approved_ state type (_Approved for Use_, _Approved for Distribution_, etc.) for their lifecycle.

### Entry Criteria on Document Lifecycle States

Batch actions may sometimes move documents into a document lifecycle state that includes entry criteria. In this situation, Vault verifies that individual documents meet the entry criteria for their new state. If the document fails to meet the entry criteria, you won't have the opportunity to update the document. Instead, the entire batch action fails. When the action fails, all documents in the batch and the _Batch_ record itself remain in their initial lifecycle state.

### Entry Criteria on Batch Lifecycle States

Admins in your Vault may apply entry criteria to states in the Batch Approval lifecycle, which check to see if related documents are all in a specific state type, or none are in a specific state type. If you try to move the _Batch_ record to a state like this and related documents are in the wrong states, the action will fail. When the action fails, all documents in the batch and the _Batch_ record itself remain in their initial lifecycle state.

## Related Permissions

When moving documents between states using Batch Approval, users don't need to have the correct role-based permissions for changing states on individual documents. Vault performs these state changes as "System," rather than as the individual user interacting with the _Batch_ record.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: Users can unknowingly approve documents using Batch Approval if they don’t have <em>View Document</em> access to all documents in the batch.</p>
    </div>
  </div>
</div>



<table class="wbord">
  <tr>
    <td>
      <strong>Type</strong>
    </td>
    <td>
      <strong>Permission Label</strong>
    </td>
    <td>
      <strong>Controls</strong>
    </td>
  </tr>
  <tr>
    <td>
      Security Profile
    </td>
    <td>
      Objects: Batch: Create, Edit
    </td>
    <td>
      Ability to create and update Batch records, which is necessary to use the Create Batch bulk action or to manually create Batch records. By default, this permission is only granted to users with the standard <em>Business Admin</em>, <em>System Admin</em> or <em>Vault Owner</em> security profiles.
    </td>
  </tr>
  <tr>
    <td>
      Security Profile
    </td>
    <td>
      Application: Library: Bulk Update
    </td>
    <td>
      Ability to see the Actions menu in the Library, binders, etc., which allows you to access bulk action options.
    </td>
  </tr>
  <tr>
    <td>
      Document Role
    </td>
    <td>
      Edit Fields
    </td>
    <td>
      Ability to update document field values for an existing document, which allows users to edit the <em>Batch Number</em> field.
    </td>
  </tr>
</table>

## Limitations

Vault prevents you from adding _Unclassified_ documents to a batch.

Batch state changes cannot update documents that are currently checked out or in an active workflow.
