Overview
After configuring the M-Files Plugin for Salesforce CRM or the M-Files Connector for Salesforce CRM you may notice that your SQL query filtering for some of the external object types you have configured are not correctly filtering. Specifically, all objects that utilize the "includeFilter" parameter.
For example, the following statement:
type=Account;columns=Name,status__c,SyncMfiles__c,type,Customer_Number__c,Sub_Type__c,id;includefilter=SyncMfiles__c='1'
Should sync only objects with a "SyncMfiles" value of 1. However, the plugin seems to ignore this filter.
IMPORTANT
The M-Files Connector for Salesforce CRM supports Filter queries by default as of version 24.6.4.0.
This means that this article does not apply to it, and you do not need to refresh all items (set "Force refresh of all items" or "Force Full Refresh" to "Yes") every time to have a filter.
Tip: See this article for more details on the filter behavior: Salesforce EOT: Filter operators, their behavior and format in M-Files.
The rest of this article applies to the old deprecated Plugin (different from the Connector), and old versions of the connector.
Solution
This is a known behavior of the M-Files Plugin for Salesforce CRM. The plugin code is currently configured so that the "includeFilter" feature is only supported when using full queries (i.e., when "M-Files.All=true" is included in the connection string).
Thus, the current workaround is to include "M-Files.All=true" in your connection string for all objects that have the "includeFilter" in their statements. This will ensure that the filtering works correctly. There is currently an improvement request (ID 157043 and/or 71799 that you can monitor the release notes for) to allow the use of the "includeFilter" parameter without changing the connection string.
Note that adding this setting may cause a performance issue as it may synchronize a significantly larger number of objects (by default only changes since the last synchronization are used).
