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

Hubot Salesforce handler script to query topics by company.

NPM Version NPM Downloads License

Stories in Ready

See src/salesforce.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-salesforce --save

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

["hubot-salesforce"]

Configuration

Environment VariableNotes
SF_INSTANCE_URLurl of your salesforce instance eg. https://na2.salesforce.com
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

Usage

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

Notes

Adapted from lnediger's script submitted to hubot-scripts

Links

Project Repo

  • https://github.com/grokify/hubot-salesforce

Hubot

  • https://github.com/github/hubot

Contributing

  1. Fork it ( http://github.com/grokify/hubot-salesforce/fork )
  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

License

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

Hubot Salesforce script © 2014 GitHub, 2016 John Wang

Metadata

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