Loading
Ongoing maintenance for Salesforce HelpRead More
Set Up and Maintain Your Salesforce Organization
Get Objects and Fields of a Job Session

Get Objects and Fields of a Job Session

Returns the scanned objects and fields of a job session.

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/policies/jobsession/{jobSessionId}/scanresults/entities -H "Authorization: Bearer token"  -X GET
Example
Example REQUEST BODY

None required

Example
Example 200 RESPONSE BODY
{
  "entities": [
    {
      "jobObjectSessionId": "0DKRM0000004Cff0AE",
      "objectApiName": "Contact",
      "fields": ["Email", "Phone", "Description"]
    },
    {
      "jobObjectSessionId": "0DKRM0000004Cfg0AE",
      "objectApiName": "Lead",
      "fields": ["Email"]
    }
  ]
}
Example
Example 400 RESPONSE BODY
{
	"errorCode": "FUNCTIONALITY_NOT_ENABLED", "message": "The DataDetect results API is not enabled for your org."
}
Example
Example 403 RESPONSE BODY
{
	"errorCode": "INSUFFICIENT_ACCESS", "message": "You do not have access to one or more objects scanned in this job session."
}
Example
Example 404 RESPONSE BODY
{
	"errorCode": "RESOURCE_NOT_FOUND", "message": "No job session exists for the supplied ID."
}
 
Loading
Salesforce Help | Article