hubot-salesforce
Hubot Salesforce handler script to query topics by company.
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
:
Configuration
Environment Variable | Notes |
---|---|
SF_INSTANCE_URL |
url of your salesforce instance eg. https://na2.salesforce.com |
SF_CONSUMER_KEY |
consumer key from the Remote Access Setup page in Salesforce |
SF_CONSUMER_SECRET |
consumer secret from the Remote Access Setup page in Salesforce |
SF_USERNAME |
a valid salesforce login |
SF_PASSWORD |
password 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
Hubot
Contributing
- Fork it ( http://github.com/grokify/hubot-salesforce/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - 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