Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Salesforce Apex Hours : Node red for salesforce

605 views

Published on

NodeRED, a top level OpenSource project of the JavaScript foundation, too follows the philosophy "Clicks, not code" we all got to love in Salesforce. The talk will introduce NodeRED, what it is, what it can do and how to use it in conjunction with use cases for Salesforce.


Agenda:
- Introduction to NodeRED: nodes, flows, runtime
- Talking to Salesforce: SOSL, SOQL, DML, Streaming & Chatter
- Use cases with Salesforce
- Q&A

Published in: Education
  • Be the first to comment

  • Be the first to like this

Salesforce Apex Hours : Node red for salesforce

  1. 1. Introduction into NodeRED More than just IoT swissel@salesforce.com, @notessensei Stephan H. Wissel, Program Architect Director
  2. 2. Agenda What we will talk about 1. What is NodeRED 2. Use cases 3. Running it on Heroku
  3. 3. About me Stephan H. Wissel Program Architect Director swissel@salesforce.com @notessensei https://www.wissel.net/ 2+ years Salesforce 11 years IBM 20 years in Singapore
  4. 4. NodeRED IBM Hursley Lab escapee ● Linux, Win, Mac ● Cloud, Desktop, Pi ● NodeJS & Express ● Flow based
  5. 5. NodeRED Messages flow from sources to sinks
  6. 6. NodeRED IBM Hursley Lab escapee
  7. 7. Meet some of the Nodes (1/3) Debug Node ● Output option ○ Log ○ Debug Window ● Output scope ○ msg ○ payload ○ custom Inject Node ● Insert various messages ○ time stamp ○ object ○ String ● Trigger options ○ on startup ○ on schedule ○ on click Just the basics
  8. 8. Meet some of the Nodes (2/3) HTTP Response Node ● Partner to Endpoint Node ● Set Header Values ● Set Status Code ● Set cookies from msg.cookies HTTP Endpoint Node ● All HTTP methods ● supports file upload ● Translates form data to JSON ● Access to ○ parameters ○ headers ○ cookies ○ body Basic HTTP
  9. 9. Meet some of the Nodes (3/3) Condition Node ● Graphical “Select Case” ● Flexible output count ● Pattern matching ● Any variable Template Node ● Transform content ● Multiple templates ○ Mustache ○ Markdown ○ html Function Node ● JavaScript ● alter msg object ● access to ○ msg ○ node variables ○ flow variables ○ global variables Manipulate data
  10. 10. NodeRED Gui driven flows
  11. 11. Demo … and 2000 of their friends
  12. 12. Runs everywhere with everything Almost • Windows • Linux • Mac • Heroku • AWS • GCE • Azure • Raspberry Pi • QNap • Synology • Mainframe 2034 Nodes* 1281 example flows * as of 1 June 2019
  13. 13. Use cases Limited only by your imagination • Mock API Endpoints • Connect to Salesforce • Save to database • Transform and forward • Connect (both ways) to IoT • Prototype custom actions • Quick Dashboards
  14. 14. NodeRED on Heroku Caveats and Advantages Advantaged • https works out of the box • custom domain available • multiple instances • Rich selection for databases etc Caveats • No hardware access • Runtime is epidermal -> save your flows.js file local/github node-red --settings ./.node-red/settings.js --userDir ./.node-red
  15. 15. There is much more Topics not covered: • Roll you own Nodes • Headless operation • GitHub integration Online resources: ● NodeRED.org ● flows.nodered.org ● https://www.wissel.net/blog/2018/02/running-nodered-on-heroku-with-salesforce.html Got another hour or two or three ...
  16. 16. Is that the YETI?
  17. 17. Call to action ● Go and play with it ● Feedback / Tickets ● What functions next? ● Pull requests welcome!

×