- Log in to Workbench.
- Go to Info > Standard and Custom Objects.
- In the Object dropdown, choose the object you wish to inspect (eg. Case) then click Select.
- Expand Fields. You should find what you're looking for here.
- Log in to Workbench.
- Go to
Queries > SOQL Query
. - Enter your query or optionally use the form to help you build the query, then click
Query
.
Yes. Here's an example of how to do it, and what to expect.
import logging
import SalesforcePy as sfdc
username = "jsoap@universalcontainers.com"
password = "p@ssword1"
client_id = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
client_secret = "123456789123456789"
client = sfdc.client(
username=username,
password=password,
client_id=client_id,
client_secret=client_secret
)
client.debug(level=logging.INFO) # Tell the client to debug at an info level
client.login() # Outputs "POST https://login.salesforce.com/services/oauth2/token" to logs
Yes. Here's an example of how to do it.
import SalesforcePy as sfdc
username = "jsoap@universalcontainers.com"
password = "p@ssword1"
client_id = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
client_secret = "123456789123456789"
client = sfdc.client(
username=username,
password=password,
client_id=client_id,
client_secret=client_secret,
proxies={"https": "localhost:8888/example/"}
# `proxies` kwarg takes a dict as required by the `requests` module.
)