# Enable E2B Import to Inbox Item

Learn about how to update your Vault's configuration to be able to import _Inbox Items_ from E2B files.

## About the Feature

With the 21R2 release, Vault added support to import _Inbox Items_ from E2B files. Once enabled, <a href="/en/lr/01135/">Import an Inbox Item</a> describes how to use this feature.

### 24R3 Update: Duplicate E2B XML File Detection {#duplicate-xml}

With the 24R3 release, you can configure your Vault to detect duplicate files imported from a multi-E2B or ZIP file. See [(24R3) Duplicate E2B XML File Detection][1] to configure your Vault for the updated feature.

## Prerequisite

If you don't have _Inbox Items_ configured in your Vault, follow the appropriate steps in <a href="/en/lr/01308/">Enable Inbox Items</a> depending on the Vault Safety template version from which your Vault was provisioned.

## Configure the Create Inbox Item Document Action

Add the _Create Inbox Item from Document_ action to the _AER_ lifecycle and any additional document lifecycles, as required.
1. Navigate to **Admin > Configuration > Document Lifecycles > AER Lifecycle > States > New > User Actions**.
2. Select **Edit**.
3. Select **Create Rule**, and specify the following settings:
    1. Select **Create Inbox Item From Document** from the dropdown list.
    2. Enter an **Action Label**, such as "Create Inbox Item from Document".
4. Select **Save**.

## Update the Case Page Layout

Update the _Case_ <a href="/en/lr/26387/">object layout</a> for study _Cases_ and to show the base _Case Contact_ object type.

### Case Layout Updates

1. Navigate to **Admin > Configuration > Objects > Case > Layouts > Case**.
2. Select **Edit**.
3. Remove the _Study_ field from the _Study_ section and add it to the _Details_ section below _New Info Date_.
4. Save the layout.
5. Select **Layout Rules**.
6. Update the _Study Cases Rule_ (`case_study_rule_v__c`) <a href="/en/lr/51632/#creating-layout-rules">layout rule</a> as follows:
    1. <a href="/en/lr/51632/#about-display-effects">Hide</a> only the _Study_ and _Study Registrations_ sections.
    2. Update the **IF this Layout Rule Expression is TRUE** expression to match the following: `isBlank(study__vr.name__v)`

### Show Base Case Contacts

Edit the _Criteria VQL_ in the _Contacts_ section on the _Case_ layout to show the base _Case Contact_ object type.
1. Navigate to **Admin > Configuration > Objects > Case > Layouts > Case**.
2. In the _Case Contact_ related object section, select the **Edit** icon.
3. Under _Criteria VQL_, edit the VQL to match the following: ```object_type__vr.api_name__v CONTAINS ('reporter__v', 'health_care_professional__v', 'patient_contact__v', 'facility__v','base__v')```
4. Select **Close**.
5. Save the layout.

## (24R3) Duplicate E2B XML File Detection {#r243}

Vault can detect duplicate XML files when importing multi-E2B and ZIP files.

### Configure the Transmission Profile Object

You must add the _Enable E2B Document Duplicate Detection_ field to the following _Transmission Profile_ <a href="/en/lr/26387/">object layouts</a>:

* _AS2 Gateway Detail Page Layout_
* _Connection Profile Page Layout_
* _Inbound Email Page Layout_
* _Partner Exchange Profile Page Layout_
* _System Gateway Detail Page Layout_

### Update Transmission Profiles

Populate the _Enable E2B Document Duplicate Detection_ field on the applicable <a href="/en/lr/01202/">_Transmission Profiles_</a>. When this field is _Yes_, Vault detects duplicate files that users already successfully imported and creates the _Inbox Items_ in the _Duplicate_ lifecycle state. Vault also links each duplicate file to the original version already in your Vault

[1]: #r243