Expand | ||||
---|---|---|---|---|
| ||||
Table of Contents
|
Note |
---|
In order to use the Programmatic Data Import API, your Salesforce Org needs to have API usage activated through having an API usage License. |
Numberedheadings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The Programmatic Data Import API function is implemented as Apex class and is exposed as REST web service by using Salesforce standard functionality (see Apex Developer Guide for more information). For general information about the Forecast API feature, see REST web serviceURLhttps://<my-domain-name>.my.salesforce.com/services/apexrest/ADvendio/ProgrammaticDataService/loadCSV/ https://<my-domain-name>.my.salesforce.com/services/apexrest/ADvendio/ProgrammaticDataService/loadCSV/ Method
URL Params
BodyThe request body should content a csv file binary containing the data to be imported according the following mapping. More information about the mapping and the file to attach can be found here:
Success ResponseCode: 200 Content: A serialized JSON with the batch job id that will handle the import process. Example: {"jobId":"7075r00001lfCmsAAE"} Error ResponseSee Salesforce Apex REST Documentation ExamplesGet a Session-IDGet CLIENT_ID and CLIENT_SECRET from any connected app or create a new app in your org: App Manager -> New Connected App Enable Enable OAuth Settings to see the consumer key (CLIENT_ID) and Consumer Secret (CLIENT_SECRET) Minimal requestA simple request for a data set connected to an Ad Server. |