**Source URL:** https://safety.veevavault.help/en/lr/1117910/index.md

# 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, <a href="/en/lr/1117908/">configure</a> safety views to support this feature and learn more about <a href="/en/lr/752963/#latest-case-version">latest _Case_ version logic</a>. 

## 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_ <a href="/en/lr/26387/#how-to-access-page-layouts">object layout</a> for the _Principal View_ object type, <a href="/en/lr/26387/#how-to-add-object-fields">add</a> 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_ <a href="/en/lr/26387/#how-to-access-page-layouts">object layout</a>, insert a <a href="/en/lr/26387/#related-object">related object section</a> 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_ <a href="/en/lr/26387/#how-to-access-page-layouts">object layout</a>: 
* <a href="/en/lr/26387/#how-to-add-object-fields">Add</a> the _Latest Case Version_ field to the _Details_ section.
* Create a <a href="/en/lr/51632/#creating-layout-rules">layout rule</a> 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

<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>: We recommend contacting your Veeva Representative to complete the configuration in this section. </p>
    </div>
  </div>
</div>



To use this feature, you must: 
* <a href="/en/lr/32218/#how-to-copy-records">Copy</a> 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 <a href="/en/lr/752978/#sql-editor">SQL</a> 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. <a href="/en/lr/752978/#create-workbench-view-columns">Create _Workbench View Columns_</a> 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