Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heroku-connect-plugin

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-connect-plugin

Heroku Connect plugin for Heroku Toolbelt

  • 0.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109
increased by37.97%
Maintainers
2
Weekly downloads
 
Created
Source

Heroku Connect Toolbelt Plugin

Install

$ heroku plugins:install heroku-connect-plugin

Help

heroku help connect 

Commands

heroku connect:auth              - Authenticate a connection to Salesforce
heroku connect:preauth           - Store a Salesforce authentication for future use
heroku connect:export            - Export a mapping configuration json file
heroku connect:import            - Import a mapping configuration json file
heroku connect:mapping MAPPING   - Returns a status JSON doc for a single mapping
heroku connect:setup             - configure a new connection
heroku connect:state             - Return the state flag for a single connection
heroku connect:status            - Print connection status
heroku connect:pause             - Pause a connection
heroku connect:resume            - Resume a connection
heroku connect:restart           - Restart a connection

Examples

Create a new mapping

heroku connect:create-mapping Contact --fields FirstName,Email --with-required

Delete a mapping

heroku connect:delete-mapping Account

Download the mapping configuration

heroku connect:export

Tutorial

Create an authorization into your Salesforce org. Note the result token.

heroku connect:preauth

Token: xxx

Make sure you have a Heroku app, with a Postgres database attached

Add the Heroku Connect add-on to your app

$ heroku addons:create herokuconnect -a <app>

Link the new connection (the Heroku Connect add-on instance) to your Heroku user

$ heroku connect:status -a <app>

Now link the connection to the database and the Salesforce Org, using the preauth token

$ heroku connect:setup -d DATABASE_URL -s salesforce -t <token from step 1> -a <app>

Verify that connection is now in 'IDLE' state

$ heroku connect:status -a <app>
.. check for '(IDLE)'

Now sync the Contact table

$ heroku connect:create-mapping Contact --fields FirstName,LastName --mode write --with-required -a <app>

Connect to your database to see the data

$ heroku pg:psql -a <app>
> select * from salesforce.contact;

Keywords

FAQs

Package last updated on 03 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc