---
schema_version: "1"
id: 51925a36e0b2919374315d19c83d09e3b94d2aebc699e48f3552dc4f0ce0fce4
title: DataDetPlcyDataSrchExps
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_datadetplcydatasrchexps.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_datadetplcydatasrchexps.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 04a3d03529b6b0bddbd5c63ba877da12c4e0f2af74cede7a9a88a4ccf9c545cb
description: Represents data search expressions for scanning DataDetect scan policies based on Java regex. This object is available in API version 64.0 and later.
---
# DataDetPlcyDataSrchExps

Represents data search expressions for scanning DataDetect scan policies based on Java regex. This object is available in API version 64.0 and later.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

When working with regex, Salesforce recommends Java 17 or later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| DataDetectPolicyId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the scan policy associated with the data search expression.

This field is a relationship field.

Relationship Name

DataDetectPolicy

Relationship Type

Master-Detail

Refers To

DataDetectPolicy



 |
| Expression | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Regular expression that represents sensitive data to be scanned.



 |
| IsCaseSensitive | 

Type

boolean

Properties

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

Description

Designates whether the expression is case-sensitive (true) or not (false).

The default value is false.





 |
| IsKeywordSearch | 

Type

boolean

Properties

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

Description

Designates whether the expression can be used as a search keyword (true) or not (false).

The default value is false.





 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Name of the expression.



 |

#### See Also

- [_Salesforce Help_: Data Detect](https://help.salesforce.com/s/articleView?id=xcloud.einstein_data_detect.htm&type=5&language=en_US)