You are here:
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.
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.
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer editions with the Salesforce Shield or Data Detect Licenses. |
curl https://MyDomainName.my.salesforce.com/services/data/v68.0/datadetect/policies/jobsession/{jobSessionId}/scanresults/csvurl -H "Authorization: Bearer token" -X GET
None required
{
"status": "CsvUploadSuccess",
"downloadUrl": "/services/data/v68.0/sobjects/ContentVersion/068RM0000004Cff/VersionData",
"message": "Your CSV is ready to download."
}
{
"status": "CsvNoPiiData",
"downloadUrl": "",
"message": "No sensitive data was detected, so there is no CSV to download."
}
{
"status": "CsvUploadFailed",
"downloadUrl": "",
"message": "We couldn't generate the CSV. Use a SOQL query to retrieve the scan results instead."
}
{
"errorCode": "FUNCTIONALITY_NOT_ENABLED", "message": "DataDetect is not enabled for this organization."
}
{
"errorCode": "ENTITY_IS_DELETED", "message": "An object scanned in this job session has been deleted."
}
{
"errorCode": "FUNCTIONALITY_TEMPORARILY_UNAVAILABLE", "message": "We are preparing your CSV now. Check again shortly."
}

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.