This sample application shows a simple way to use a Node.js app along with Workflow on Salesforce to do Extract, Transform, and Load (ETL) from Salesforce to MySQL.
-
Create a local MySQL database named
demo -
Install the Node.js dependencies:
npm install -
Run the local dev server:
npm run dev -
Start an ngrok tunnel:
ngrok http 5000
- Create a new Workflow
- Select the
Contactobject - Give the rule a name
- Select
created, and every time it's edited - In the
Rule Criteraselectforumla evaluates to trueand enterTruein the formula field - In
Immediate Workflow ActionsselectNew Outbound Message - Give the Outbound Message a name, enter the
Endpoint URLfor either your Heroku app (e.g.https://foo.herokuapp.com/) or your ngrok endpoint for local testing (e.g.https://1234.ngrok.io/) - Select the
Email,FirstName, andLastNamefields
