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

# Enable Latest Case Version Support

With the 26R2 release, users can choose to return the latest _Case_ versions as opposed to all _Cases_ in _Workbench Reports_, _Workbench Dashboards_, and _Workbench Report Sets_. After following the enablement steps on this page, configure safety views to support this feature and learn more about latest _Case_ version logic. 

## Update Object Layouts

Update the following object layouts: 
* [_Workbench View_][1]
* [_Workbench View Column_][2]
* [_Workbench Report Set_][3]

### Update the Workbench View Layout {#workbench-view-layout}

To update the _Workbench View_ object layout for the _Principal View_ object type, add the following fields to the _Properties_ section:
* _Show Latest Version Only_
* _Allow User To Control Latest Version_

For the _Workbench View_ object type, add the _Show Latest Version Only_ field to the _Properties_ section.

### Update the Workbench View Column Layout {#workbench-view-column-layout}

To update the _Workbench View Column_ object layout, insert a related object section with the following information: 
* **Related Object**: Select **Workbench View Column Join**, ensuring you select the second instance of this object. 
* **Section Label**: After selecting the _Related Object_, Vault should populate `Latest Version Reference Column Joins`. 
* **Creation Options**: Select **Create record in pop-up dialog**.

### Update the Workbench Report Set Layout {#workbench-report-set-layout}

To update the _Workbench Report Set_ object layout: 
* Add the _Latest Case Version_ field to the _Details_ section.
* Create a layout rule to hide the _Latest Case Version_ field with the following configuration: 
    * **Label**: Enter `Hide latest version`
    * **Description**: Enter `Hides the latest version control when it isn't used for this report set. `
    * **If this Layout Rule Expression is True**: Enter `OR(allow_latest_version__v=FALSE, IsBlank(allow_latest_version__v))`
    * **Apply the following display effects**: Select **Hide** > **Fields** > **Latest Case Version**

## Copy Custom Safety Views

**Note**: We recommend contacting your Veeva Representative to complete the configuration in this section. 

To use this feature, you must: 
* Copy the following standard views to create custom ones: 
    * _Latest Version Support_ (of the _Supporting View_ type)
    * _Latest Version_ (of the _Dynamic View_ type)
        * Update the SQL to reference the API name of the new custom _Supporting View_
        * Update the [new latest version _Dynamic View_][4]

### Update the Custom Latest Case Version Dynamic View {#latest-case-version-dynamic-view}

Create _Workbench View Columns_ on the latest version _Dynamic View_ to support latest _Case_ version logic for _Date_ and _DateTime_ fields: 
1. Navigate to the custom (`__c`) _Dynamic View_ for latest _Case_ versions.
2. Expand the **View Columns** section and select **Create**. 
3. Create _Workbench View Columns_ for each view column of the _Date_ or _DateTime_ type to which you want to apply _Case_ version logic in the applicable _Principal View_. The following example configures a view column on the _Dynamic View_ for the _Case > New Info Date_ view column on the _Principal View_: 
    * **Name**: Enter `Latest Version > Next New Info Date`
    * **Column Type**: Select **Date**
    * **API Name**: Enter `lv_next_new_info_date__c`
    * **Hide from filters**: Select **Yes** \
    This field ensures this _Workbench View Column_ does not appear in the filters section of _Workbench Reports_ and _Workbench Dashboards_. Set this field to **Yes** for all latest version _Workbench View Columns_. 

[1]: #workbench-view-layout
[2]: #workbench-view-column-layout
[3]: #workbench-report-set-layout
[4]: #latest-case-version-dynamic-view