Loading
The Trailblazer Community is now read-only Read More
Set Up and Maintain Your Salesforce Organization
Get Results CSV Download URL

Get Results CSV Download URL

Returns the URL of the downloadable results .csv file. Returns 200 if the file is ready to download, or 503 while it’s still generating.

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/csvurl -H "Authorization: Bearer token"  -X GET
Example
Example REQUEST BODY

None required

Example
Example 200 CsvUploadSuccess RESPONSE BODY
{
  "status": "CsvUploadSuccess",
  "downloadUrl": "/services/data/v68.0/sobjects/ContentVersion/068RM0000004Cff/VersionData",
  "message": "Your CSV is ready to download."
}
Example
Example 200 CsvNoPiiData RESPONSE BODY
{
  "status": "CsvNoPiiData",
  "downloadUrl": "",
  "message": "No sensitive data was detected, so there is no CSV to download."
}
Example
Example 200 CsvUploadFailed RESPONSE BODY
{
  "status": "CsvUploadFailed",
  "downloadUrl": "",
  "message": "We couldn't generate the CSV. Use a SOQL query to retrieve the scan results instead."
}
Example
Example 400 RESPONSE BODY
{
	"errorCode": "FUNCTIONALITY_NOT_ENABLED", "message": "DataDetect is not enabled for this organization."
}
Example
Example 404 RESPONSE BODY
{
	"errorCode": "ENTITY_IS_DELETED", "message": "An object scanned in this job session has been deleted."
}
Example
Example 503 RESPONSE BODY
{
	"errorCode": "FUNCTIONALITY_TEMPORARILY_UNAVAILABLE", "message": "We are preparing your CSV now. Check again shortly."
}
 
Loading
Salesforce Help | Article