Add option to SelectQuery condition

Created on 26 December 2023, 11 months ago
Updated 14 February 2024, 9 months ago

I wanted to use a select query condition with OR not always with AND.

This is a temporary improvement and it should have a condition group suggested here β†’ but needs more work.

Example usage;

$user_query = new SelectQuery('Account');
$user_query->conditionGlue = ConditionGlue::OR;
$user_query->fields = ['Id'];
$user_query->limit = 1;
$user_query->order['LastModifiedDate'] = 'DESC';
$user_query->addCondition('xxx', [$xxx]);
$user_query->addCondition('yyy', [$yyy]);
$user_query->addCondition('zzz', [$zzz]);
$user_query_response = $this->salesforceClient->query($user_query);
✨ Feature request
Status

Fixed

Version

5.0

Component

salesforce.module

Created by

πŸ‡ΉπŸ‡·Turkey emircan erkul Turkey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024