Skip to content

assimoes/node-fluent-salesforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-fluent-salesforce

======================

Node Fluent API to query Salesforce using Salesforce REST API.

This is a very initial work towards the development of a fluent API to enable you to query your Salesforce Organization.

For now you can Authenticate and Authorize against your Salesforce organization using the OAuth2 username-password flow.

This basically means that you will have to have a known username and password, and all subsequent requests will be made using the returned access token.

You will also need to create/configure a Connected App in your Salesforce organization in order to have access to a Consumer Key and a Client Secret.

Example usage


  var sfnode = require('./lib/sfnode');
  var AuthOptions = require('./lib/AuthOptions');
  var FluentQuery = require('./lib/FluentQuery');


  var authOptions = new AuthOptions('password',
                               'your consumer key',
                               'your client secret',
                               'your username',
                               'your password + token')


  var auth = sfnode.authenticate(authOptions)
    .then(function(data){

       var q = new FluentQuery.Query(data);
       
       q.from('Account')
       .select('ID,NAME')
       .execute()
       .then(function(d){
          console.log(d);
          
     });

  });


About

Node Fluent API to query Salesforce using Salesforce REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published