# Enable Inactivate Products and Studies

Learn how to configure your Vault so you can deprecate _Products_ and _Studies_ in your _Library_.

## About the Feature

With the 25R1 release, Vault Safety supports deprecating _Products_ in the _Product_ library and _Studies_ in the _Study_ library. Previously, you could deprecate only _Product Registrations_ and _Study Registrations_. When you deprecate a _Product_ or _Study_, Vault can also deprecate the related _Product Registrations_ and _Study Registrations_. This allows you to maintain a more current and accurate _Library_, reflecting the latest changes to your product lines and studies.

To support intake and case processing, Vault applies a _Deprecated_ tag to applicable product fields on _Inbox Items_ and _Cases_ and study fields on _Inbox Items_, indicating the lifecycle state to users.<!---hiding until configuration is resolved by PM You can also [create a lookup field][4] to display the lifecycle state of _Studies_ on _Cases_. ---> In addition, Vault supports creating _Cases_ and follow-up _Cases_ that reference inactive _Products_ and _Studies_.

After configuring this feature, see <a href="/en/gr/01215/#deprecate-a-product">Manage Products</a> and <a href="/en/gr/01216/#sr-inactive">Manage Studies</a> for information on deprecating records and <a href="/en/gr/01162/#browse-deprecated">Auto-Code and Browse Products</a> for information on coding deprecated _Products_.

## Add States, State Types, and Actions to the Product and Study Lifecycles

To move _Products_ and _Studies_ between the _Active_ and _Deprecated_ lifecycle states, complete the following configuration on the _Product Lifecycle_ and _Study Lifecycle_ object lifecycles:

* Add the [_Deprecated_ state and set it to the _Deleted State_ state type][1].
* Add [user actions][2].
* Add [entry actions][3].

To complete the configuration, navigate to **Admin > Configuration > Object Lifecycles > [Object Lifecycle]**.

### <a id="states"></a>Create States and State Types

For both the _Product Lifecycle_ and _Study Lifecycle_ object lifecycles, <a href="/en/gr/30683/#how-to-define-states">create the _Deprecated_ state</a> and then <a href="/en/gr/30683/#how-to-associate-an-object-state-type-with-a-state">associate</a> it with the _Deleted State_ state type.

### <a id="user-actions"></a>Add User Actions

To configure the _Change State to Deprecated_ and _Change State to Active_ <a href="/en/gr/59885/#define-actions">user actions</a>:

* On the _Active_ state of each object lifecycle, add the _Change State to Deprecated_ user action with the following configuration:
  * **Condition Type**: Always
  * **Allow the following actions**: Change State to > Deprecated
  * **Action Label**: `Change State to Deprecated`
* On the _Deprecated_ state of each object lifecycle, add the _Change State to Active_ user action with the following configuration:
  * **Condition Type**: Always
  * **Allow the following actions**: Change State to > Active
  * **Action Label**: `Change State to Active`

### <a id="entry-actions"></a>Add Entry Actions

To configure <a href="/en/gr/59885/#entry-actions">entry actions</a> that set all _Product Registrations_ or _Study Registrations_ to the _Deprecated_ state when the parent _Product_ or _Study_ is deprecated:

* On the _Deprecated_ state of the _Product Lifecycle_ object lifecycle, configure an entry action as follows:
  * **Condition Type**: Always
  * **perform actions**: Change related object lifecycle state
  * **Related Object**: Product Registrations
  * **Change State To**: Deprecated
* On the _Deprecated_ state of the _Study Lifecycle_ object lifecycle, configure an entry action as follows:
  * **Condition Type**: Always
  * **perform actions**: Change related object lifecycle state
  * **Related Object**: Study Registrations
  * **Change State To**: Deprecated

<!---hiding until we resolve how to configure this

## <a id="lookup"></a>Optional: Create a Lookup Field for Study Lifecycle State

In the _Details_ section of the _Case_ object, you can create a <a href="/en/gr/28740/#how-to-add-lookup-fields">lookup field</a> for _Study_ lifecycle states to visually indicate the status of _Studies_ to users. Configure the following:

* **Field Type**: Select **Lookup**.
* Label: Enter [label].
* Lookup Relationship: Select [object] (name__vr).
* Lookup Source Field: Select [field].
---> 

[1]: #states
[2]: #user-actions
[3]: #entry-actions
[4]: #lookup