I'd like for you to make the API name from salesforce to python, after which upload some facts returned in salesforce asynchronously. Consequently, I need to log in as the authentic person in salesforce to technique my actions. As an example, an API name is made from SF to python, and then I'd like to create an account from python.
I exploit easy-salesforce in python.
I am passing the session_id from the user info.Getsessionid() from salesforce as a header in my API name to python, however then I am not able to use simple-salesforce to act because of the originating user.
How need to I accomplish that?
I have tried the following, however, I continually get invalid session_id mistakes.
from simple_salesforce import Salesforce
Salesforce(instance_url="https://cs128.salesforce.com", session_id=session_id, domain='test')
Salesforce(instance="test.salesforce.com", session_id=session_id, domain='test')
In my test, the user has a profile of system admin, with API enabled. Using my user with login/password I can successfully login to Salesforce so no problem on this site.
Just looking for a way to use the session_id from salesforce to keep on acting as the originating user.
Subscribe to get latest updates