Sample Gallery Reference Code and Best Practices for Salesforce Developers 23 April 2020 | 10:30 a.m. IST
Sr. Developer Evangelist Satya Sekhar Chegondi Image Speakers Sr. Developer Evangelist Aditya Naag Topalli Image Director, Developer Relations Shashank Srivatsavaya Image
Forward-Looking Statement Statement under the Private Securities Litigation Reform Act of 1995: This presentation contains forward-looking statements about the company’s financial and operating results, which may include expected GAAP and non-GAAP financial and other operating and non-operating results, including revenue, net income, diluted earnings per share, operating cash flow growth, operating margin improvement, expected revenue growth, expected current remaining performance obligation growth, expected tax rates, the one-time accounting non-cash charge that was incurred in connection with the Salesforce.org combination; stock-based compensation expenses, amortization of purchased intangibles, shares outstanding, market growth and sustainability goals. The achievement or success of the matters covered by such forward-looking statements involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions prove incorrect, the company’s results could differ materially from the results expressed or implied by the forward-looking statements we make. The risks and uncertainties referred to above include -- but are not limited to -- risks associated with the effect of general economic and market conditions; the impact of geopolitical events; the impact of foreign currency exchange rate and interest rate fluctuations on our results; our business strategy and our plan to build our business, including our strategy to be the leading provider of enterprise cloud computing applications and platforms; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles; the competitive nature of the market in which we participate; our international expansion strategy; the demands on our personnel and infrastructure resulting from significant growth in our customer base and operations, including as a result of acquisitions; our service performance and security, including the resources and costs required to avoid unanticipated downtime and prevent, detect and remediate potential security breaches; the expenses associated with new data centers and third-party infrastructure providers; additional data center capacity; real estate and office facilities space; our operating results and cash flows; new services and product features, including any efforts to expand our services beyond the CRM market; our strategy of acquiring or making investments in complementary businesses, joint ventures, services, technologies and intellectual property rights; the performance and fair value of our investments in complementary businesses through our strategic investment portfolio; our ability to realize the benefits from strategic partnerships, joint ventures and investments; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may affect the publicly traded companies within the company's strategic investment portfolio; our ability to execute our business plans; our ability to successfully integrate acquired businesses and technologies, including delays related to the integration of Tableau due to regulatory review by the United Kingdom Competition and Markets Authority; our ability to continue to grow unearned revenue and remaining performance obligation; our ability to protect our intellectual property rights; our ability to develop our brands; our reliance on third-party hardware, software and platform providers; our dependency on the development and maintenance of the infrastructure of the Internet; the effect of evolving domestic and foreign government regulations, including those related to the provision of services on the Internet, those related to accessing the Internet, and those addressing data privacy, cross-border data transfers and import and export controls; the valuation of our deferred tax assets and the release of related valuation allowances; the potential availability of additional tax assets in the future; the impact of new accounting pronouncements and tax laws; uncertainties affecting our ability to estimate our tax rate; the impact of expensing stock options and other equity awards; the sufficiency of our capital resources; factors related to our outstanding debt, revolving credit facility, term loan and loan associated with 50 Fremont; compliance with our debt covenants and lease obligations; current and potential litigation involving us; and the impact of climate change. Further information on these and other factors that could affect the company’s financial results is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings it makes with the Securities and Exchange Commission from time to time. These documents are available on the SEC Filings section of the Investor Information section of the company’s website at www.salesforce.com/investor. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements, except as required by law.
Follow us for updates @salesforcedevs Salesforce Developers Salesforce Developers India (t.me/salesforcedevsindia) Salesforce Developers This webinar is being recorded. The recording will be available on YouTube and will be sent via email.
Have Questions? Don’t wait until the end to ask your question! • Technical support will answer questions starting now. Respect Q&A etiquette • Please don’t repeat questions. The support team is working their way down the queue. Stick around for live Q&A at the end • Speakers will tackle more questions at the end, time-allowing Head to Developer Forums • More questions? Visit developer.salesforce.com/forums
As the global COVID-19 pandemic continues to impact us all, we hope that you’re focusing on the health and safety of yourself and your families. As we all continue to navigate this confusing time, we also want you to know that we’re here for you. Learn everything that Trailhead and Salesforce are doing to support our community in these unprecedented times - https://bit.ly/33MIwNY We’re here for you!
#LevelUpSFDev
• Sample Gallery Overview • Types of Sample Apps • Walkthroughs • Benefits • Roadmap Agenda
Sample Gallery Overview
Poll Did you know about Sample Gallery previously? You have 60 seconds to answer this
Sample Gallery Get Inspired with Sample apps, Reference Code and Best Practices Open Source Code hosted on GitHub for you to explore, learn and contribute Updated Regularly Continuously updated to incorporate the latest Generally Available features and best practices. Easily deployable Deploy using Salesforce DX or unlocked packages to a non-production* org of your choice. * Sample Apps are intended for learning, NOT for production sforce.co/sample-gallery
Types of Sample Apps
Types of Sample Apps Recipe Style Code for specific tasks in less than 30 lines of code Dedicated to a platform feature. e.g. LWC, Apex Standalone Dedicated to industry use cases Features showcased in fully functional apps Partnerships Standalone apps built through partnerships
Types of Sample Apps Recipe Style Standalone Partnerships LWC Recipes LWC Recipes OSS Dreamhouse Easy Spaces E-Bikes Redwoods (Apple)
Walkthroughs
We will walk you through... Recipe Style Standalone Partnerships LWC Recipes LWC Recipes OSS Dreamhouse Easy Spaces E-Bikes Redwoods (Apple)
LWC Recipes Easy to digest examples Each task is implemented in less than 30 Lines Most of the common use-cases are covered A “View Source” link takes you right to the code in Github Sample app to learn Lightning Web Components
Sample Retail App E-Bikes Lightning Web Components Communities Lightning Data Service Drag n Drop Composition Pub/Sub What does the app do? Helps manufacturers manage their products and reseller orders using a rich User Experience. What can I learn from it? ● How to build rich User Experience with Lightning Web Components ● How to integrate with Salesforce Communities ● How to use Experience Bundle to deploy the community
What does the app do? Helps event coordinators manage reservations and find the right theme for their customers. What can I learn from it? ● How to build experiences with Dynamic Flows and object agnostic components. ● How to structure your source code for modular distribution Sample Event Management App Easy Spaces ALSO IN AURA Lightning Web Components Unlocked Packages Modular App Design Object Agnostic Components Lightning Flow Lightning Console
What does the app do? ● Helps brokers manage their properties and their customers. ● Helps prospective home buyers find their dream house via a custom mobile app. What can I learn from it? ● How to build rich and immersive user experiences with Lightning Components. ● How performance improves when you switch from Aura to LWC. Sample Real Estate App Dreamhouse ALSO IN AURA Lightning Web Components Mobile SDK* Lightning Data Service Maps Bot Integration* Einstein Vision* *In Aura Version Only
What does the app do? ● Mobile App helps customers capture pictures and other details about accidents ● Salesforce console helps claims adjusters view multimedia files & manage the claims process. What can I learn from it? How to use the Mobile SDK to provide rich, native connections to a customer's device. Sample Car Insurance App Redwoods Insurance Lightning Web Components Mobile SDK Service Cloud Geolocation Swift Communities
LWC Recipes Open Source Easy to digest examples Each Task is implemented in less than 30 Lines Most of the common* use-cases are covered A View Source link takes you right to the code in Github Sample app to learn Lightning Web Components Off-platform * Salesforce Access, Routing etc. are not covered
Poll Which Sample App shown today did you like the most? You have 60 seconds to answer this
Benefits Inspiration & Learning What you can build How you can build it Open Source Source code is available on Github You can also contribute Learn and Understand the best practices Well Maintained Updated with every release Periodically upgraded with new apps with latest and greatest features
A few recent updates ● Error panel refactor to follow Salesforce UX standards. ● Updated SLDS classes to respect org density. ● Removed @track wherever it is not needed. ● Added WITH SECURITY_ENFORCED clause to Apex classes. ● Updated community configuration to Communities Experience Bundle. ● and many more... Read more on our blog post: Sample Gallery Updates for Spring '20
Best Practices Source Control Code Formatting and Linting Pre-commit hooks GitHub Actions for CI Org Setup Org Initialization Scripts Tree API for data import
Roadmap
Roadmap to the future ● More apps coming… ○ Recipes for Apex, Automation and more. ● Some apps going… ○ Outdated/Redundant apps will be archived (not maintained but available read-only) ○ e.g. Pure Aloe, DreamInvest ● Some apps gone… ○ Not really gone, but archived (not maintained but available read-only) ○ e.g. Northern Trail Outfitters, Aura based apps
Youtube Channel: Watch on-demand videos from experts on today's most in-demand skills. Developer Blog: Read quality content written by experts at Salesforce. Webinars & Trailhead Live: Sign Up for upcoming webinars, Live streaming sessions that interest you, and spread the word to your colleagues and friends. Sample Gallery: Get inspired with sample apps, explore reference code, and learn best practices Telegram: Exclusive channel on Telegram for Salesforce Developers in India! Subscribe now and never miss an important update One-stop-shop for Developer Content bit.ly/devrelguide Salesforce Developer Resources
Q&A Try Trailhead: trailhead.salesforce.com Join the conversation on Facebook: @salesforcedevs Subscribe to our Telegram Channel: t.me/salesforcedevsindia
Survey Your feedback is crucial to the success of our webinar program. Please fill out the survey at the end of the webinar. Thank you!
Sample Gallery: Reference Code and Best Practices for Salesforce Developers

Sample Gallery: Reference Code and Best Practices for Salesforce Developers

  • 1.
    Sample Gallery Reference Codeand Best Practices for Salesforce Developers 23 April 2020 | 10:30 a.m. IST
  • 2.
    Sr. Developer Evangelist SatyaSekhar Chegondi Image Speakers Sr. Developer Evangelist Aditya Naag Topalli Image Director, Developer Relations Shashank Srivatsavaya Image
  • 3.
    Forward-Looking Statement Statement underthe Private Securities Litigation Reform Act of 1995: This presentation contains forward-looking statements about the company’s financial and operating results, which may include expected GAAP and non-GAAP financial and other operating and non-operating results, including revenue, net income, diluted earnings per share, operating cash flow growth, operating margin improvement, expected revenue growth, expected current remaining performance obligation growth, expected tax rates, the one-time accounting non-cash charge that was incurred in connection with the Salesforce.org combination; stock-based compensation expenses, amortization of purchased intangibles, shares outstanding, market growth and sustainability goals. The achievement or success of the matters covered by such forward-looking statements involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions prove incorrect, the company’s results could differ materially from the results expressed or implied by the forward-looking statements we make. The risks and uncertainties referred to above include -- but are not limited to -- risks associated with the effect of general economic and market conditions; the impact of geopolitical events; the impact of foreign currency exchange rate and interest rate fluctuations on our results; our business strategy and our plan to build our business, including our strategy to be the leading provider of enterprise cloud computing applications and platforms; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles; the competitive nature of the market in which we participate; our international expansion strategy; the demands on our personnel and infrastructure resulting from significant growth in our customer base and operations, including as a result of acquisitions; our service performance and security, including the resources and costs required to avoid unanticipated downtime and prevent, detect and remediate potential security breaches; the expenses associated with new data centers and third-party infrastructure providers; additional data center capacity; real estate and office facilities space; our operating results and cash flows; new services and product features, including any efforts to expand our services beyond the CRM market; our strategy of acquiring or making investments in complementary businesses, joint ventures, services, technologies and intellectual property rights; the performance and fair value of our investments in complementary businesses through our strategic investment portfolio; our ability to realize the benefits from strategic partnerships, joint ventures and investments; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may affect the publicly traded companies within the company's strategic investment portfolio; our ability to execute our business plans; our ability to successfully integrate acquired businesses and technologies, including delays related to the integration of Tableau due to regulatory review by the United Kingdom Competition and Markets Authority; our ability to continue to grow unearned revenue and remaining performance obligation; our ability to protect our intellectual property rights; our ability to develop our brands; our reliance on third-party hardware, software and platform providers; our dependency on the development and maintenance of the infrastructure of the Internet; the effect of evolving domestic and foreign government regulations, including those related to the provision of services on the Internet, those related to accessing the Internet, and those addressing data privacy, cross-border data transfers and import and export controls; the valuation of our deferred tax assets and the release of related valuation allowances; the potential availability of additional tax assets in the future; the impact of new accounting pronouncements and tax laws; uncertainties affecting our ability to estimate our tax rate; the impact of expensing stock options and other equity awards; the sufficiency of our capital resources; factors related to our outstanding debt, revolving credit facility, term loan and loan associated with 50 Fremont; compliance with our debt covenants and lease obligations; current and potential litigation involving us; and the impact of climate change. Further information on these and other factors that could affect the company’s financial results is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings it makes with the Securities and Exchange Commission from time to time. These documents are available on the SEC Filings section of the Investor Information section of the company’s website at www.salesforce.com/investor. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements, except as required by law.
  • 4.
    Follow us forupdates @salesforcedevs Salesforce Developers Salesforce Developers India (t.me/salesforcedevsindia) Salesforce Developers This webinar is being recorded. The recording will be available on YouTube and will be sent via email.
  • 5.
    Have Questions? Don’t waituntil the end to ask your question! • Technical support will answer questions starting now. Respect Q&A etiquette • Please don’t repeat questions. The support team is working their way down the queue. Stick around for live Q&A at the end • Speakers will tackle more questions at the end, time-allowing Head to Developer Forums • More questions? Visit developer.salesforce.com/forums
  • 6.
    As the globalCOVID-19 pandemic continues to impact us all, we hope that you’re focusing on the health and safety of yourself and your families. As we all continue to navigate this confusing time, we also want you to know that we’re here for you. Learn everything that Trailhead and Salesforce are doing to support our community in these unprecedented times - https://bit.ly/33MIwNY We’re here for you!
  • 7.
  • 8.
    • Sample GalleryOverview • Types of Sample Apps • Walkthroughs • Benefits • Roadmap Agenda
  • 9.
  • 10.
    Poll Did you knowabout Sample Gallery previously? You have 60 seconds to answer this
  • 11.
    Sample Gallery Get Inspiredwith Sample apps, Reference Code and Best Practices Open Source Code hosted on GitHub for you to explore, learn and contribute Updated Regularly Continuously updated to incorporate the latest Generally Available features and best practices. Easily deployable Deploy using Salesforce DX or unlocked packages to a non-production* org of your choice. * Sample Apps are intended for learning, NOT for production sforce.co/sample-gallery
  • 12.
  • 13.
    Types of SampleApps Recipe Style Code for specific tasks in less than 30 lines of code Dedicated to a platform feature. e.g. LWC, Apex Standalone Dedicated to industry use cases Features showcased in fully functional apps Partnerships Standalone apps built through partnerships
  • 14.
    Types of SampleApps Recipe Style Standalone Partnerships LWC Recipes LWC Recipes OSS Dreamhouse Easy Spaces E-Bikes Redwoods (Apple)
  • 15.
  • 16.
    We will walkyou through... Recipe Style Standalone Partnerships LWC Recipes LWC Recipes OSS Dreamhouse Easy Spaces E-Bikes Redwoods (Apple)
  • 17.
    LWC Recipes Easy todigest examples Each task is implemented in less than 30 Lines Most of the common use-cases are covered A “View Source” link takes you right to the code in Github Sample app to learn Lightning Web Components
  • 18.
    Sample Retail App E-Bikes LightningWeb Components Communities Lightning Data Service Drag n Drop Composition Pub/Sub What does the app do? Helps manufacturers manage their products and reseller orders using a rich User Experience. What can I learn from it? ● How to build rich User Experience with Lightning Web Components ● How to integrate with Salesforce Communities ● How to use Experience Bundle to deploy the community
  • 19.
    What does theapp do? Helps event coordinators manage reservations and find the right theme for their customers. What can I learn from it? ● How to build experiences with Dynamic Flows and object agnostic components. ● How to structure your source code for modular distribution Sample Event Management App Easy Spaces ALSO IN AURA Lightning Web Components Unlocked Packages Modular App Design Object Agnostic Components Lightning Flow Lightning Console
  • 20.
    What does theapp do? ● Helps brokers manage their properties and their customers. ● Helps prospective home buyers find their dream house via a custom mobile app. What can I learn from it? ● How to build rich and immersive user experiences with Lightning Components. ● How performance improves when you switch from Aura to LWC. Sample Real Estate App Dreamhouse ALSO IN AURA Lightning Web Components Mobile SDK* Lightning Data Service Maps Bot Integration* Einstein Vision* *In Aura Version Only
  • 21.
    What does theapp do? ● Mobile App helps customers capture pictures and other details about accidents ● Salesforce console helps claims adjusters view multimedia files & manage the claims process. What can I learn from it? How to use the Mobile SDK to provide rich, native connections to a customer's device. Sample Car Insurance App Redwoods Insurance Lightning Web Components Mobile SDK Service Cloud Geolocation Swift Communities
  • 22.
    LWC Recipes OpenSource Easy to digest examples Each Task is implemented in less than 30 Lines Most of the common* use-cases are covered A View Source link takes you right to the code in Github Sample app to learn Lightning Web Components Off-platform * Salesforce Access, Routing etc. are not covered
  • 23.
    Poll Which Sample Appshown today did you like the most? You have 60 seconds to answer this
  • 24.
    Benefits Inspiration & Learning Whatyou can build How you can build it Open Source Source code is available on Github You can also contribute Learn and Understand the best practices Well Maintained Updated with every release Periodically upgraded with new apps with latest and greatest features
  • 25.
    A few recentupdates ● Error panel refactor to follow Salesforce UX standards. ● Updated SLDS classes to respect org density. ● Removed @track wherever it is not needed. ● Added WITH SECURITY_ENFORCED clause to Apex classes. ● Updated community configuration to Communities Experience Bundle. ● and many more... Read more on our blog post: Sample Gallery Updates for Spring '20
  • 26.
    Best Practices Source Control CodeFormatting and Linting Pre-commit hooks GitHub Actions for CI Org Setup Org Initialization Scripts Tree API for data import
  • 27.
  • 28.
    Roadmap to thefuture ● More apps coming… ○ Recipes for Apex, Automation and more. ● Some apps going… ○ Outdated/Redundant apps will be archived (not maintained but available read-only) ○ e.g. Pure Aloe, DreamInvest ● Some apps gone… ○ Not really gone, but archived (not maintained but available read-only) ○ e.g. Northern Trail Outfitters, Aura based apps
  • 29.
    Youtube Channel: Watch on-demandvideos from experts on today's most in-demand skills. Developer Blog: Read quality content written by experts at Salesforce. Webinars & Trailhead Live: Sign Up for upcoming webinars, Live streaming sessions that interest you, and spread the word to your colleagues and friends. Sample Gallery: Get inspired with sample apps, explore reference code, and learn best practices Telegram: Exclusive channel on Telegram for Salesforce Developers in India! Subscribe now and never miss an important update One-stop-shop for Developer Content bit.ly/devrelguide Salesforce Developer Resources
  • 30.
    Q&A Try Trailhead: trailhead.salesforce.com Jointhe conversation on Facebook: @salesforcedevs Subscribe to our Telegram Channel: t.me/salesforcedevsindia
  • 31.
    Survey Your feedback iscrucial to the success of our webinar program. Please fill out the survey at the end of the webinar. Thank you!