Need to get your Salesforce Data into RJMetrics, but don't want to mess with apex and/or SOQL? Here is the solution!
This app contains a rake task that, when run, will grab all of the relevant collections and fields from Salesforce, and push them to your RJMetrics datawarehouse. From there you can do all sorts of stuff and relate it back to your transactional or payment database.
PLEASE NOTE:
This app is not endorsed or supported by RJMetrics Inc. or Salesforce.com
This app will have a lot of api calls on your SalesforceDatabase.
You can exclude specific collections by adding them to the skipped_tables array as below.
skipped_tables line 20:
skipped_tables = ["LeadFeed", "AccountFeed", "ContactHistory", "LoginHistory", "OpportunityHistory", "LeadHistory" ]
To get started, clone this project to your own repo.
Run:
bundle install
and then:
rails generate figaro:install
Figaro is a gem that takes care of environmental variables, and make it easy to push them to heroku, which is where you can host this app for free.
Once you run the figaro generator, you need to set up your enviroment variables. Open config/application.yml and enter in your Salesforce Credentials, like below.
# Add application configuration variables here, as shown below
DATABASEDOTCOM_CLIENT_SECRET:
DATABASEDOTCOM_CLIENT_ID:
SF_USERNAME:
SF_PASSWORD:
RJ_KEY:
RJ_ID:
If you have questions about where to find these keys or values please refer to the RJMetrics API Docs or the DatabaseDotCom.
Once you have all of that set up, you push it to heroku. Use the free Heroku Scheduler to automate that task to run.
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
