Download data from Salesforce

Parameters:
To use this action, you’ll need to get several parameters from Salesforce:
Once you have completed the “setup process” , you can use the parameters to select the data to extract from your Salesforce system.
The parameter P3 is a number that defines how many rows of data will be downloaded from Salesforce (this is mostly useful only for testing, the first time that you connect to Salesforce).
The parameter P4 is the WHERE Clause of the SOQL statement. For more details about SOQL statements, see here:
If the parameter P4 is left empty, ETL downloads all the records (i.e. there is no filter).


Before downloading data from Salesforce or before uploading data to Salesforce, you need to create a new Salesforce application. Here are the steps:


In the left column, in the "PLATFORM TOOLS" section, click "Apps" and then click "App Manager".
Click the "New External Client App"

Fill-in the required fields inside the "New Connected App"

Continue to fill-in the required fields inside the “New Connected App” configuration page:
For the parameter “Selected OAuth Scopes”, you must select at least these 3 scopes:
o Access and Manage your data (api)
o Full access (full)
o Perform requests on your behalf at any time (refresh token, offline access)


For the “Callback URL” parameter, you can put your company url.





12. Open ETL, fill-in parameters P5, P6, P7, click "Start" button and follow instructions:





13. After that, the refresh token P10 should be populated, and you will be able to select a table P1, fields P2, and preview the data.



If you cannot see the Salesforce login page at step 10 of the previous section, it usually means that you need to follow this procedure:


If you see inside the ETL log window the following error message “The REST API is not enabled for this Organization. Code: API_DISABLED_FOR_ORG”, this usually means that you are still using the TRIAL version of Salesforce. You need the paid version of Salesforce to be able to use the Saleforces action inside ETL.
If you are using the paid version of Salesforce and you still get this error message, then you’ll need to enable the “REST API” for your organization: Here is the procedure:


