MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
94 stars 51 forks source link

Add a filter to edit the whole SOQL query after it has been made into a string #428

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

Is your feature request related to a problem? Please describe. Currently there's a filter that developers can use to change the SOQL query that the plugin runs, but at the time of the filter the query is an object with properties, and it's not as full-featured as SOQL queries might be. See this thread for example.

Describe the solution you'd like I think it makes sense to add another filter that is specifically for editing the SOQL query once it has already been cast to a string. This would let developers who want to write their own SOQL, no matter what complexity it has, to do that.

Describe alternatives you've considered It's possible we might want to support or conditionals, but for the immediate change I think the filter is nice.