Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
body: '',
headers: {},
method: '',
url: ''
};
salesforceConnection.request(requestInfo);
const queryOptions: sf.ExecuteOptions = {
autoFetch: true,
maxFetch: 5000,
headers: {},
scanAll: true
};
salesforceConnection.query('SELECT Id, Name FROM Account', queryOptions);
sf.Date.YESTERDAY;
salesforceConnection.sobject('Coverage__c')
.select(['Id', 'Name'])
.include('Coverage_State_Configurations__r')
.select(['Id']).where({ Is_Active__c: true })
.end()
.where({ Is_Active__c: true }).execute();
const records: any[] = [];
salesforceConnection.query('SELECT Id FROM Account')
.on('record', (record) => {
records.push(record);
})
.on('end', (query: any) => {
console.log(records);
})