**Source URL:** https://quality.veevavault.help/en/lr/1363424/

# Configuring Batch Genealogy

During the batch disposition process, your organization may need to ensure that input batches used to produce a primary batch are approved for use and not impacted by quality events. Batch Release provides the option to generate a genealogy to accurately display relationships between batches in your Vault.

## Configuration Overview

Complete the following steps to allow users to utilize the batch genealogy feature:

  * Add the _Generate Genealogy Records_ field to the _Batch Disposition Plan_ object page layout and configure the field to _Show as checkbox_.
  * Ensure that the desired _Batch Disposition Plans_ have the _Generate Genealogy Records_ field selected. This option allows Vault to simultaneously create a _Batch Genealogy_ record upon creating a _Batch Disposition_ for a particular batch.
  * Configure a [user action to generate a _Batch Genealogy_][1] for a specific disposition's batch.
  * Configure the _Generate Document from Report_ user action on the _Batch Disposition Lifecycle_ to [generate a genealogy report][2].
  * Ensure the _Batch Release: Remove Batch Genealogy Records (Weekly)_ job definition is active.

## Configuring the Generate Batch Genealogy Action {#generate-genealogy}

Ensure that the **Generate Batch Genealogy** user action is configured on the _Batch Disposition Lifecycle_ in the desired lifecycle state. This action generates or recalculates a batch's genealogy. Vault notifies the user who executed the action when the operation is complete or has failed due to an error.

## Configuring the Generate Document From Report Action for Genealogy Reports {#generate-report}

The _Generate Document From Report_ action allows a user to create a document containing a batch genealogy report directly from a _Batch Disposition_ record. The newly generated document, in PDF form, is linked from the _Genealogy Report_ document reference field on the originating _Batch Disposition_ record. In order for users to have access to this function, you must [create a report][3] and make the _Generate Document From Report_ action available to users in the desired lifecycle states on the _Batch Disposition Lifecycle_.

### Creating a Report for Batch Genealogy {#create-report}

Before configuring the _Generate Document From Report_ action, you must select a compatible report type and create a report. The available report types for generating genealogy reports are _Batch with Batch Genealogy_, _Batch with Batch Disposition_, and _Batch with Quality Event_.

**Note**: If your Vault utilizes standalone quality event objects, the _Batch with Quality Event_ report type is available for use with the _Deviation_, _Change Control_, _Lab Investigation_, and _Complaint_ objects.

## Related Permissions

You can complete all the steps in this article with the standard _System Administrator_ or _Vault Owner_ security profile. If your Vault uses custom security profiles, your profile must grant the following permissions:

| Type | Permission | Controls |
| --- | --- | --- |
| Security Profile | Objects: Batch Disposition: Read, Create, Edit | Ability to view and edit _Batch Disposition_ object records. |
| Security Profile | Objects: Batch Disposition Plan: Read, Create, Edit | Ability to view and edit _Batch Disposition Plan_ object records and layouts. |
| Security Profile | Objects: Batch Genealogy: Read, Create, Edit | Ability to view and edit _Batch Genealogy_ object records and layouts. |
| Security Profile | Admin: Object Lifecycles: Read, Create, Edit | Ability to configure the _Batch Disposition Lifecycle_. |
| Security Profile | Admin: Operations: All Operations, All Operations Read | Ability to access the _Operations_ tab. |
| Security Profile | Admin: Jobs: Read, Edit | Ability to view and edit the _Batch Release: Remove Batch Genealogy Records (Weekly)_ job definition. |

  [1]: #generate-genealogy
  [2]: #generate-report
  [3]: #create-report