dict = sf.query("SELECT Id,FirstName,LastName,Email FROM Contact WHERE Id=:cid")
cid is a variable defined by myself. I wonder how to use the simple query function to select the field.
Any response will be helpful!
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
you have to explicitly send a
String of the query to SOQL from python, replace variable binding with concrete values and concatenations of string
ict = sf.query("SELECT Id,FirstName,LastName,Email FROM Contact WHERE Id='" + cid + "'")
This is exactly the same, as Dynamic SOQL in Apex