jsforcehelper

3.0.0 • Public • Published

jsforcehelper

This is an npm module design to perform common jsforce uses with pVelocity's pvserver.

Getting Started

Install the jsforcehelper module.

npm install --save jsforcehelper

Use the require statement to load the module.

var jsfh = require('jsforcehelper');
var jsapi = {};

The jsforce.Connection is accessible in jsapi.sfdcConn.

To connect to a known Salesforce server using a username and password.

jsfh.connect(jsapi, 'username', 'password', 'url').then(function(success) {
    if (success) {
        console.log('Success');
    } else {
        console.log('Failure');
    }
});

Methods

All methods implement jsforce methods to perform their action, returning a Promise.

License

Copyright (c) 2016, pVelocity Inc

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Dependents (0)

Package Sidebar

Install

npm i jsforcehelper

Weekly Downloads

0

Version

3.0.0

License

ISC

Unpacked Size

22.7 kB

Total Files

16

Last publish

Collaborators

  • ac9