---
schema_version: "1"
id: b1c6cf66305cf5a8a07290cc01605abd85c01ed5c30e7b478b46035ba5fe433f
title: DataDetectPolicy
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_datadetectpolicy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_datadetectpolicy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f101895db841c2f8a46600d9858f71e1f051bb0949804a1dad24adab7bc39bd8
description: Represents a set of parameters that specifies the types of sensitive data for search with in a data scan. DataDetect scan policies can also apply filters to a data scan, along with specific objects and fields for scanning. This object is available in API version 60.0 and later.
---
# DataDetectPolicy

Represents a set of parameters that specifies the types of sensitive data for search with in a data scan. DataDetect scan policies can also apply filters to a data scan, along with specific objects and fields for scanning. This object is available in API version 60.0 and later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| Description | 
Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Description of the scan policy.



 |
| EndTime | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

Time and date when the data scan completes.



 |
| IsScheduled | 

Type

Boolean

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Determines if the policy is scheduled or not.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Name of the scan policy.



 |
| OwnerId | 

Type

reference

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The UserID of the person who owns the record. This field is a polymorphic relationship field.

Relationship Name

Owner

Refers To

Group, User



 |
| ScanType | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Designates whether the data scan type is AIInference or PatternMatching.

The default value is PatternMatching.





 |
| StartTime | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

Time and date when the data scan begins. Data scans can start anytime within a 30-day window from the current date.



 |

#### See Also

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