---
schema_version: "1"
id: 577f1844f7c2c7e05a493fab0ad5bb2530ef3df88025e1772cefa6f832eaed44
title: DataMaskCustomValueLibrary
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_datamaskcustomvaluelibrary.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_datamaskcustomvaluelibrary.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7cc803b08802718b92574468e145fb3513885be49d3fbad946fbb20d45a547e0
description: Represents a set of user-inputted values in a custom library in Data Mask. This object is available in API version 64.0 and later.
---
# DataMaskCustomValueLibrary

Represents a set of user-inputted values in a custom library in Data Mask. This object is available in API version 64.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Special Access Rules

This object is available with the Sandbox Data Mask managed package.

## Fields

| Field | Details |
| --- | --- |
| ContentType | 
Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort

Description

The type of value used in a field of the custom library.

Possible values are:

- email
- number
- phone\_number
- string
- url





 |
| Description | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The description of the value in the custom library.



 |
| IsActive | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Represents whether the library is active or inactive for use.

The default value is false.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the custom library.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the owner of the custom library.

This field is a polymorphic relationship field.

Relationship Name

Owner

Refers To

Group, User



 |
| Type | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

Represents how the values were added to the library.

Possible values are:

- default
- user\_defined





 |
| Values | 

Type

textarea

Properties

Create, Nillable, Update

Description

The content of the value field for masking data.



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[DataMaskCustomValueLibraryOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[DataMaskCustomValueLibraryShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.