Giter VIP home page Giter VIP logo

ifttt_salesforce's Introduction

Salesforce IFTTT Channel

This project is the code for the Salesforce IFTTT Channel and the managed package on the App Exchange.

Developer Info

To setup a local development environment do the following:

  1. Clone this repo

  2. Start a local Redis server

  3. Setup ngrok

    1. Install ngrok: https://ngrok.com/
    2. Start ngrok: ngrok 9000
  4. Create a Salesforce OAuth App

    • OAuth Callback URL: https://<YOUR ID>.ngrok.com/services/oauth2/authorized
  5. Create a new IFTTT channel for testing: https://developers.ifttt.com/channels

    • Details > API URL Prefix = https://<YOUR ID>.ngrok.com
    • Authentication > Scheme = My Channel has users with expiring OAuth2 access tokens and uses refresh tokens.
    • Authentication > OAuth2 Settings > Client ID = <YOUR OAUTH CLIENT ID>
    • Authentication > OAuth2 Settings > Client Secret = <YOUR OAUTH CLIENT Secret>
    • Authentication > OAuth2 Settings > Authorization URL = https://<YOUR ID>.ngrok.com/services/oauth2/authorize
    • Authentication > OAuth2 Settings > Token URL = https://<YOUR ID>.ngrok.com/services/oauth2/token
  6. Install the Salesforce IFTTT Managed Package into a testing org: http://ifttt-salesforce.herokuapp.com/

  7. Obtain an Access Token for a user in that testing org

  8. Set some env vars for the local Play app:

     export IFTTT_CHANNEL_ID=<YOUR IFTTT CHANNEL SLUG>
     export IFTTT_CHANNEL_KEY=<YOUR IFTTT CHANNEL KEY>
     export IFTTT_TEST_ACCESSTOKEN=<YOUR TESTING SALESFORCE ACCESS TOKEN>
    
  9. Start the Play app: ./sbt ~run

  10. Run the IFTTT Channel Activation Test

  11. Setup the IFTTT Triggers and Actions

    • TODO
  12. Setup sample data on Salesforce for IFTTT tests

    • Create 3 new Opportunities with a Closed/Won status
    • Create 3 new IFTTT Events objects with the type field set to test
  13. Run the IFTTT Channel Endpoint Test

Salesforce Metadata

Fetch the metadata:

[email protected] SALESFORCE_PASSWORD=password ./sbt force:fetch

Deploy the metadata:

[email protected] SALESFORCE_PASSWORD=password ./sbt force:deploy

ifttt_salesforce's People

Contributors

jamesward avatar jimjag avatar svc-scm avatar

Stargazers

Takahiro KAWABATA avatar Atlas Can avatar

Watchers

 avatar James Cloos avatar Bill avatar  avatar

Forkers

jimjag jamesward

ifttt_salesforce's Issues

Will this be restored?

The connector has been taken down from Heroku for quite some time, IFTTT has done wonders to my Salesforce instance, facilitating lead entry and internal communication. I hope that the app will be back online again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.