So in the where clause of the query, I hardcoded the ' ' chars around the search keyword. This works for strings, but breaks if it's integers, booleans etc.
So there needs to be some more abstraction surrounding how the where clause is to be given to the query function. A string isn't going to cut it.
So in the where clause of the query, I hardcoded the
' '
chars around the search keyword. This works for strings, but breaks if it's integers, booleans etc.So there needs to be some more abstraction surrounding how the where clause is to be given to the query function. A string isn't going to cut it.
https://github.com/Saasli/saasli-backend/blob/master/utils/salesforce-rest/tools.py#L25