**Source URL:** https://safety.veevavault.help/en/gr/1117908/

# Configure Latest Case Version Support

You can configure safety views to always return the latest _Case_ versions in a _Workbench Report_, _Workbench Dashboard_, or _Workbench Report Set_, or you can provide users the ability to control the latest _Case_ version logic on the report or dashboard.

To configure latest _Case_ version support: 
1. [Create a _Workbench View Dynamic Join_][1].
2. Optional: [Add filters to the _Principal View_][2].
3. [Create a _Latest Version Reference Column Join_][3].
4. [Enable latest _Case_ version logic on the associated _Principal View_][4].

## Prerequisite

Before you can use this feature, you must enable Latest Case Version Support. 

## Create a Workbench View Dynamic Join {#create-dynamic-join}

From the _Principal View_'s _Dynamic Views Join_ section, create a _Workbench View Dynamic Join_ to associate the _Principal View_ with the latest version _Dynamic View_. Ensure you are associating with the custom _Dynamic View_ ending in `__c`. In addition, you should typically set the _Join Condition 1 Foreign Key_ to the _Dynamic View's_ _Case > ID_ view column.

## Optional: Add Filters to the Principal View {#principal-view-filters}

Optionally, add filters and the corresponding _Workbench View Column_ to the _Principal View_ depending on your business needs. The following example filters of the _Yes/No_ column type are configured based on the standard latest version _Dynamic View_ and _Supporting View_ provided by Veeva and include only completed _Cases_ and significant _Cases_ in the results: 
* (Field) _Include completed versions only?_ (operator) _equals_ (value) _Yes_
    * Select **Available on report**, **Editable**, and **Required**.
* (Field) _Include non-significant versions?_ (operator) _equals_ (value) _No_
    * Select **Available on report**.

## Create a Latest Version Reference Column Join {#latest-version-reference-column-join}

_Latest Version Reference Column Joins_ associate a _Principal View's_ view column with a _Dynamic View's_ view column. The following example configures a join for the _Case > New Info Date_ view column: 
1. Navigate to the respective _Principal View_.
2. Expand the **View Columns** section and select **Case > New Info Date**. 
3. On the _Workbench View Column_ page, expand the **Latest Version Reference Column Join** section and select **Create**. 
4. On the _Create Workbench View Column Join_ page, complete the following information: 
    * **Latest Version Reference View**: Select the custom _Dynamic View_ with latest _Case_ version logic.
    * **Latest Version Reference Column**: Select **Latest Version > Next New Info Date**.

## Enable Latest Case Version on the Principal View {#latest-case-version-principal-view}

To enable the latest _Case_ version logic on the associated _Principal View_: 
1. Navigate to the respective _Principal View_.
2. In the _Details_ section, the following example enables latest _Case_ version support for the _Principal View_ and its _Dependent Views_, and grants users the ability to control _Case_ version logic on reports and dashboards: 
    * **Show Latest Version Only**: Leave this field blank.
    * **Allow User To Control Latest Version**: Select **Yes**. 
3. Select **Save**.

[1]: #create-dynamic-join
[2]: #principal-view-filters
[3]: #latest-version-reference-column-join
[4]: #latest-case-version-principal-view