Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including hubot-salesforce with all npm packages installed. Try it out:

var hubotSalesforce = require("hubot-salesforce")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hubot-salesforce v0.0.2

Hubot Salesforce handler script to query topics by company


Hubot Salesforce handler script to query topics by company.

NPM Version NPM Downloads License

Stories in Ready

See src/ for full documentation.


In hubot project repo, run:

npm install hubot-salesforce --save

Then add hubot-salesforce to your external-scripts.json:



Environment VariableNotes
SF_INSTANCE_URLurl of your salesforce instance eg.
SF_CONSUMER_KEYconsumer key from the Remote Access Setup page in Salesforce
SF_CONSUMER_SECRETconsumer secret from the Remote Access Setup page in Salesforce
SF_USERNAMEa valid salesforce login
SF_PASSWORDpassword and security token mashed together


hubot salesforce account <ACCOUNT_NAME> - returns a list of matching account.
hubot salesforce query <SOQL_QUERY> - returns the SOQL query results.


Adapted from lnediger's script submitted to hubot-scripts


Project Repo





  1. Fork it ( )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request


Hubot Salesforce script is available under the MIT license. See for details.

Hubot Salesforce script © 2014 GitHub, 2016 John Wang


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free