How to use the jsforce.Date function in jsforce

To help you get started, we’ve selected a few jsforce examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / jsforce / jsforce-tests.ts View on Github external
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);
    })

jsforce

Salesforce API Library for JavaScript

MIT
Latest version published 11 days ago

Package Health Score

86 / 100
Full package analysis