---
schema_version: "1"
id: 3626c6cd2e6aabf50fc8e90f238a9c5fc1f514224051048c70d4dea84a14e02b
title: DataDetectJobSession
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_datadetectjobsession.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_datadetectjobsession.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6b25c5bdb51215672da5f67c8cee6d340c11f1e58b93cad30b2cacec5df954be
description: Represents a run of a DataDetect scan policy that's triggered manually. This object is available in API version 63.0 and later.
---
# DataDetectJobSession

Represents a run of a DataDetect scan policy that's triggered manually. This object is available in API version 63.0 and later.

## Supported Calls

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

## Fields

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

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the scan policy associated with this job session.

This field is a relationship field.

Relationship Name

DataDetectPolicy

Refers To

DataDetectPolicy



 |
| DataDetectPolicySnapshotId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the snapshot of the scan policy associated with this job session.

This field is a relationship field.

Relationship Name

DataDetectPolicySnapshot

Relationship Type

Master-Detail

Refers To

DataDetectPolicySnapshot



 |
| EndTime | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Time and date when the data scan completes.



 |
| HasClassicEncryptedField | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates that if the user is permitted to view classic encrypted fields, they can view these fields in the scan results.

The default value is false.





 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Auto-generated name of the job session.



 |
| NamedEntityCount | 

Type

int

Properties

Create, Filter, Nillable, Update

Description

Aggregate count of PII found during the data scan.



 |
| PolicyJobStatus | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Status of the data scan. Valid values are:

- Stopped
- Completed
- Failed
- PartialSuccess
- Running
- Scheduled
- TimedOut

The default value is Scheduled.





 |
| RunByUser | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

User who started the job session or data scan.



 |
| SessionStartTime | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Time and date when the data scan begins.



 |

## Associated Objects

This object has this associated object. If the API version isn’t specified, it's available in the same API version as this object. Otherwise, it's available in the specified API version and later.

[DataDetectJobSessionFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm)

Feed tracking is available for the object.

#### See Also

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