SOQL with OR
-
Hi guys, first THANK YOU for this amazing plugin.
I have around 100.000 records on my salesforce and just need to sync around 800 of them. I realized that I can use SOQL to do this by extending the hook object_sync_for_salesforce_pull_query_modify like so:
add_filter( ‘object_sync_for_salesforce_pull_query_modify’, ‘change_pull_query’, 10, 4 );
function change_pull_query( $soql, $type, $salesforce_mapping, $mapped_fields ) {
$soql->add_condition( ‘abc’, ‘true’, ‘=’ );
return $soql;
}However I need multiple OR filter for this and I think this filter only receive AND statement. Is it possible to add OR rules here?
Thank you guys!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘SOQL with OR’ is closed to new replies.