You need to sign in to do that
Don't have an account?
irfan aziz
I just tried to login using bulk api python but it fails?
Here is code
from salesforce_bulk import SalesforceBulk bulk = SalesforceBulk(username='user@abc.com', password='passwd')after executing this line i get the error
Traceback (most recent call last): File "<pyshell#7>", line 2, in <module> cid,sls,sru = SalesforceBulk(username='user@agc.com', password='passwd') File "C:\Python27\lib\site-packages\salesforce_bulk\salesforce_bulk.py", line 60, in __init__ username, password) File "C:\Python27\lib\site-packages\salesforce_bulk\salesforce_bulk.py", line 87, in login_to_salesforce ', '.join(missing_env_vars))) RuntimeError: You must set SALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET, SALESFORCE_REDIRECT_URI to use username/pass loginWhat could be wrong here. I am following simple examples.
From the above error, it states that you need to get the client id, client secret key, and instance URL.
Please check with below link from the forums community on how to get the same.
- https://developer.salesforce.com/forums/?id=906F0000000AfcgIAC
- http://stackoverflow.com/questions/35996569/how-to-login-to-the-sandbox-using-salesforce-bulk-api
- https://developer.salesforce.com/forums/?id=906F0000000MH43IAG
Hope this helps.Regards,
Nagendra.