PHP code example of scouting-nl / soqlbuilder
1. Go to this page and download the library: Download scouting-nl/soqlbuilder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
scouting-nl / soqlbuilder example snippets
use ScoutingNL\Salesforce\Soql\SoqlBuilder;
use ScoutingNL\Salesforce\Soql\Where;
$query = SoqlBuilder::select('Account')
->columns('Id', 'Name')
->where(
Where::equals('RecordType.DeveloperName', 'Scouting_Organisations'),
Where::equals('Active__c', true),
Where::in(
'Id',
SoqlBuilder::select('Organisation_Unit__c')
->columns('Organisation__c')
->where('Type__c', 'scouts'),
),
);