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.

Build sfdx plugin in 15 minutes

330 views

Published on

Dreamforce 2018 - Build sfdx plugin in 15 minutes

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Build sfdx plugin in 15 minutes

  1. 1. Build Salesforce DX Plugin in 15 Minutes @JitendraZaa – Sr Tech Architect @Bluewolf @Cloudy_Abhi – Sr. Developer
  2. 2. Jitendra Zaa MVP & Sr. Technical Architect at Bluewolf 21x Salesforce Certifications @JitendraZaa Speakers Salesforce Lead at Homestar Financial 16x Salesforce Certifications @cloudy_abhi Abhi Tripathi
  3. 3. Agenda • Salesforce DX everywhere • Salesforce CLI • Why Plugins ? • What to know before creating first plugin • DEMO • Conclusion • Resources • Q&A
  4. 4. Salesforce DX Everywhere
  5. 5. Why Salesforce DX • Is new Toolset to streamline entire development life cycle • Facilitates Automated Testing and Continuous Integration • Compatible with many Source Code Management (SCM) tools • New Packaging for ISV Partners • Works with Build managers like Jenkins or TravisCI
  6. 6. Most Important : Salesforce DX allows you to create your own plugin
  7. 7. Do you know ? Salesforce DX itself is a plugin build on top of Salesforce CLI ? Lets talk about Salesforce CLI first !!! https://github.com/JitendraZaa/sfdx-object-export
  8. 8. Salesforce CLI Source – Salesforce Blog
  9. 9. • Generate Test class coverage report in HTML or PDF Format after deployment • Compare two Salesforce Instances and generate report • Find list of all unused Apex Classes • Generate Configuration Workbook, post deployment Use Cases
  10. 10. Needs to know before Salesforce DX plugin • Nodejs basic knowledge • It uses Typescript language, created by Microsoft in 2012 • Typescript is superset of JavaScript • Salesforce DX plugin generator is based on oclif (Open CLI Framework) by Heroku team • Yarn as dependency management https://github.com/JitendraZaa/sfdx-object-export
  11. 11. DEMO
  12. 12. Conclusion • Salesforce CLI • Generating first plugin using plugin generator • Connect to any Salesforce Org using existing SFDX Authentication • Use Rest API in Plugin • Use excle4node to create excel sheets • Source Code - https://github.com/JitendraZaa/sfdx-object-export
  13. 13. Resources • Source Code - https://github.com/JitendraZaa/sfdx-object-export • Oclif - https://oclif.io/ • Create your first Salesforce DX Plugin - https://developer.salesforce.com/blogs/2018/05/create- your-first-salesforce-cli-plugin.html • Getting Started with Salesforce DX - https://developer.salesforce.com/blogs/2018/02/getting- started-salesforce-dx-part-1-5.html • Yarn - https://yarnpkg.com/en/ • Get Started with Salesforce DX Trail - https://trailhead.salesforce.com/en/trails/sfdx_get_started
  14. 14. Q&A

×