Loading
Ongoing maintenance for Salesforce HelpRead More
Set Up and Maintain Your Salesforce Organization
Get a List of Job Sessions

Get a List of Job Sessions

Returns the list of all job sessions.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer editions with the Salesforce Shield or Data Detect Licenses.

Example

curl  https://MyDomainName.my.salesforce.com/services/data/v68.0/datadetect/jobsessions -H "Authorization: Bearer token"  -X GET
Example
Example REQUEST BODY

None required

Example
Example 200 RESPONSE BODY
{
  "jobSessions": [
    {
      "jobSessionId": "0YYxx0000000001AAA",
      "jobSessionName": "Contact PII Scan - 2026-08-31",
      "policyId": "0XXxx0000000001AAA",
      "policyName": "Contact PII Scan",
      "scanType": "PatternMatch",
      "jobStatus": "InProgress"
    },
    {
      "jobSessionId": "0YYxx0000000002AAA",
      "jobSessionName": "Weekly Lead Scan - 2026-08-24",
      "policyId": "0XXxx0000000002AAA",
      "policyName": "Weekly Lead Scan",
      "scanType": "PatternMatch",
      "jobStatus": "Completed"
    }
  ],
  "totalCount": 2
}
 
Loading
Salesforce Help | Article