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
Contact
object - Give the rule a name
- Select
created, and every time it's edited
- In the
Rule Critera
selectforumla evaluates to true
and enterTrue
in the formula field - In
Immediate Workflow Actions
selectNew Outbound Message
- Give the Outbound Message a name, enter the
Endpoint URL
for 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
, andLastName
fields