Filter Salesforce Records with Flow Service API Errors
Hello,
I am currently setting up a source flow from Salesforce CRM. I am following this guide to filter ingestion. https://experienceleague.adobe.com/en/docs/experience-platform/sources/api-tutorials/filter#specify-filtering-conditions-for-ingestion
I get an error message when the flow runs.
The API request to Salesforce failed. Request Url: /services/data/v59.0/query?q=SELECT+FirstName+FROM+Contact+WHERE+`FirstName`+LIKE+'Ell%25'+AND+(LastModifiedDate+<+2026-03-04T04%3a45%3a00Z), Status Code: BadRequest, Error message: [{"message":"\nSELECT FirstName FROM Contact WHERE `FirstName` LIKE 'Ell%' AND (LastModifiedDate\n ^\nERROR at Row:1:Column:36\nunexpected token: '`'","errorCode":"MALFORMED_QUERY"}]
This error message could be because of the ` character used in the query. `FirstName`
Salesforce does not accept ` characters.
The connection spec for Salesforce accepts filters but seems to have the "columnNameEscapeChar" set to ` which is probably not correct?
```
"filterAtSource": {
"enabled": true,
"queryLanguage": "SQL",
"logicalOperators": [
"and",
"or",
"not"
],
"comparisonOperators": [
"=",
"!=",
"<",
"<=",
">",
">=",
"like",
"in",
"isNull",
"isNotNull"
],
"columnNameEscapeChar": "`",
"valueEscapeChar": "'"
}
```
Has anyone been able to filter Salesforce records using PQL?