format_soql(
"SELECT Id from Contact WHERE AccountId={account_id} AND {myfield}=TRUE",
account_id=account_id,
myfield=get_myfield_name()
)
I get simple_salesforce.exceptions.SalesforceMalformedRequest with this request
/services/data/v42.0/query/?q=SELECT+Id+from+Contact+WHERE+AccountId%3D%VALUE%27+AND+%27FIELDNAMEVALUE__c%27%3DTRUE
Quotes ( %27 ) every time added to FIELDNAMEVALUE__c.
also I tried with {myfield:like}. and {myfield:literal} and get the same in SF request URL
maybe need add new like {myfield:field}.
Ideally also need resolve case (allow any data) like this
format_soql(
'SELECT Id FROM {sftype} WHERE {condition}',
sftype=sftype,
condition=condition
)
)
simple-salesforce==1.10.1
I get simple_salesforce.exceptions.SalesforceMalformedRequest with this request
/services/data/v42.0/query/?q=SELECT+Id+from+Contact+WHERE+AccountId%3D%VALUE%27+AND+%27FIELDNAMEVALUE__c%27%3DTRUE
Quotes ( %27 ) every time added to FIELDNAMEVALUE__c.
also I tried with {myfield:like}. and {myfield:literal} and get the same in SF request URL
maybe need add new like {myfield:field}.
Ideally also need resolve case (allow any data) like this
maybe need add new like {condition:raw}.