SlideShare a Scribd company logo
Letterkenny, Ireland
Developers Group
Lk_Sf_Devs LkTrailblazers
Welcome to our virtual learning series
Learn Lightning Web Components in 5 Days
Day 4 - Working with Salesforce Data
including LDS
Lightning Web Components- Ep 3 - Working with Salesforce data and LDS
Nishant Singh Panwar
Community Group Leader
Salesforce Developer and Consultant
● 6 Years of Salesforce Implementation Experience
● 8x Salesforce Certified - Application Architect
UDAIPUR
Nishant_SP
Actions
bit.ly/lwcquery
Sahil Batra (Director @ MTX Group Inc.)
Industry Experience
Having 9 year of experience in IT Industry and 6 years in Salesforce
ecosystem.Started my Salesforce career as Developer and have played
various roles like Technical Lead , Technical Architect and Corporate
Trainer.
Professional Highlights
● Manage Salesforce trainings and certifications.
● Work as Technical Architect / Principal Developer on Projects.
● Hold 5 Salesforce Certifications and 1 Google certification.
● Conducted Training in India, US , Australia and UK.
● Trained 500+ freshers and 300+ lateral folks in Salesforce.
● Trained 800+ students and 250+ faculty members.
Email : sahilbatraa@gmail.com
Twitter : sahilbatraa18
Topics covered in Session 3
● Event Introduction
● Create Custom Events
● Declarative Event Handling
● Attach event listener
Programmatically
● Event Propagation
● Communication b/w independent
components
● pubsub
● Export Javascript Code
Recordings available @ http://bit.ly/lksfvideos
Working With Salesforce Data
● Use base components built on lightning data service
● Use LDS wire adapter and functions.
● Use Apex
Lightning Data Service
● Build on User Interface API
● Support All Custom & Standard Object supported by User Interface API
● External Objects, Person Accounts and Custom Metadata Types are not
included.
● Respect CRUD Access, FLS and Security Setting.
● Components
○ lightning-record-edit-form
○ lightning-record-form
○ lightning-record-view-form
Lightning Data Service
● Uses wire adapters and functions in lightning/ui*Api
● Apex methods are imported via @salesforce/apex/methodName
● During record change, all component using @wire adapter receive new value if
○ LWC mutates the record.
○ LDS cache expire and @wire reads the record.
Lightning Data Service does lot of work
● Loads record data progressively ,
increase performance.
● Cache result on the client
● Invalidate cache entries when dependent
Salesforce data and metadata changes.
● Optimize server calls by bulkifying and
deduping requests.
Lightning Base Components
● lightning-record-edit-form → Display editable form
● lightning-record-view-form → Display a read only form
● lightning-record-form → Support edit,view and read only modes.
Load a Record
Demo 18 : LoadRecords
Edit a Record
Demo 19 : EditRecords
Create a Record
Demo 20 : CreateRecords
Demo 21 : CreateRecords
Calling Apex Methods
● Apex Calls
○ @wire
○ imperatively
● Import Apex Method
● To Call Apex Method
○ Wire a property
○ Wire a function
○ Call a method imperatively
Calling Apex using @wire
Demo 22 : WireApexCall
Calling Apex using imperative call
Demo 23 : ImperativeApexCall
Refreshapex Demo
Demo 24 : refreshApex
Post your Queries @ bit.ly/lwcquery
Trailmix on Trailhead for Practice
Search for
Lightning Web Components in 5 Days
Coming Up
● 28 May - Navigation Services, Aura with LWC interoperability & extra topics.
bit.ly/lwcday5
RSVP
LWC QUIZ
Win Swag
Lightning Web Components- Ep 3 - Working with Salesforce data and LDS

More Related Content

PDF
Lightning web components - Episode 1 - An Introduction
Salesforce Developers
 
PPTX
Introduction to lightning Web Component
Mohith Shrivastava
 
PDF
Lwc presentation
Nithesh N
 
PDF
LWC Episode 3- Component Communication and Aura Interoperability
Salesforce Developers
 
PPTX
Intro to Salesforce Lightning Web Components (LWC)
Roy Gilad
 
PPTX
Lightning web components
Cloud Analogy
 
PDF
API Management Solution Powerpoint Presentation Slides
SlideTeam
 
PDF
Lightning Web Components- Ep 1 - Decorators, Life Cycle Hooks and Compositions
Nishant Singh Panwar
 
Lightning web components - Episode 1 - An Introduction
Salesforce Developers
 
Introduction to lightning Web Component
Mohith Shrivastava
 
Lwc presentation
Nithesh N
 
LWC Episode 3- Component Communication and Aura Interoperability
Salesforce Developers
 
Intro to Salesforce Lightning Web Components (LWC)
Roy Gilad
 
Lightning web components
Cloud Analogy
 
API Management Solution Powerpoint Presentation Slides
SlideTeam
 
Lightning Web Components- Ep 1 - Decorators, Life Cycle Hooks and Compositions
Nishant Singh Panwar
 

What's hot (20)

PPTX
Lightning Components Introduction
Durgesh Dhoot
 
PDF
Lightning web components episode 2- work with salesforce data
Salesforce Developers
 
PPTX
Grafana vs Kibana
jeetendra mandal
 
PPTX
Introduction to lightning components
Mohith Shrivastava
 
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Nidhi Sharma
 
PDF
Dynamic input tables lwc vs aura vs. visualforce
Mike Tetlow
 
PPTX
Lightning Web Component in Salesforce
Jitendra Zaa
 
PPTX
How to Build an Effective API Security Strategy
Nordic APIs
 
PDF
[Final] best practices for access management (mule soft meetups riyadh) - j...
satyasekhar123
 
PPTX
React render props
Saikat Samanta
 
PPTX
Introducing Sitecore - The Experience Platform
Adrian IORGU
 
PPTX
Laravel Beginners Tutorial 1
Vikas Chauhan
 
PPTX
Monolithic architecture
SRM University Delhi-NCR sonepat
 
PPTX
Deep Dive into Apex Triggers
Salesforce Developers
 
PDF
Intro to open source observability with grafana, prometheus, loki, and tempo(...
LibbySchulze
 
PDF
HashiCorp Vault configuration as code via HashiCorp Terraform- stories from t...
Andrey Devyatkin
 
KEY
Event Driven Architecture
Stefan Norberg
 
PDF
Understanding MicroSERVICE Architecture with Java & Spring Boot
Kashif Ali Siddiqui
 
PPTX
Admin Webinar—An Admin's Guide to Profiles & Permissions
Salesforce Admins
 
PDF
Planning Your Migration to the Lightning Experience
Shell Black
 
Lightning Components Introduction
Durgesh Dhoot
 
Lightning web components episode 2- work with salesforce data
Salesforce Developers
 
Grafana vs Kibana
jeetendra mandal
 
Introduction to lightning components
Mohith Shrivastava
 
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Nidhi Sharma
 
Dynamic input tables lwc vs aura vs. visualforce
Mike Tetlow
 
Lightning Web Component in Salesforce
Jitendra Zaa
 
How to Build an Effective API Security Strategy
Nordic APIs
 
[Final] best practices for access management (mule soft meetups riyadh) - j...
satyasekhar123
 
React render props
Saikat Samanta
 
Introducing Sitecore - The Experience Platform
Adrian IORGU
 
Laravel Beginners Tutorial 1
Vikas Chauhan
 
Monolithic architecture
SRM University Delhi-NCR sonepat
 
Deep Dive into Apex Triggers
Salesforce Developers
 
Intro to open source observability with grafana, prometheus, loki, and tempo(...
LibbySchulze
 
HashiCorp Vault configuration as code via HashiCorp Terraform- stories from t...
Andrey Devyatkin
 
Event Driven Architecture
Stefan Norberg
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Kashif Ali Siddiqui
 
Admin Webinar—An Admin's Guide to Profiles & Permissions
Salesforce Admins
 
Planning Your Migration to the Lightning Experience
Shell Black
 
Ad

Similar to Lightning Web Components- Ep 3 - Working with Salesforce data and LDS (20)

PDF
Lightning Components - Down Under Dreaming Sydney
Techforce Services
 
PPTX
Salesforce lwc development workshops session #4
Rahul Gawale
 
PPTX
Lightning Data Service
Rahul Malhotra
 
PPTX
Salesforce lightning design -components for CRM
yahmad111
 
PDF
Lightning Design System and Components for Visualforce Developers
Salesforce Developers
 
PPTX
Salesforce Lightning Component Framework Roadmap (TDX18)
Developer Force
 
PPTX
Salesforce Lightning workshop
Shivanath Devinarayanan
 
PPTX
Lightning Developer Week - Bangalore Salesforce Developer Group
Abhilash Kuntar
 
PDF
Lightning Components Explained
Atul Gupta(8X)
 
PPTX
Building apps faster with lightning and winter '17
Salesforce Developers
 
PPTX
Building Apps Faster with Lightning and Winter '17
Mark Adcock
 
PPTX
Session 4/5 working with salesforce data including LDS
Hamza942706
 
PDF
Salesforce Lightning Development What Do You Need to Know.pdf
JPLoft Solutions
 
PPTX
Salesforce Lightning workshop Hartford - 12 March
Jitendra Zaa
 
PDF
Lightning Workshop London
Keir Bowden
 
PPTX
Build lightning components with salesforce dx
Shashank Srivatsavaya (ShashForce)
 
PDF
Lightning Web Components- Ep 4 - Navigation Services, LWC and Aura Interopera...
Nishant Singh Panwar
 
PPTX
Suisse Romande SF DG - Lightning workshop
Gnanasekaran Thoppae
 
PDF
Lightning week - Paris DUG
Paris Salesforce Developer Group
 
PPTX
Intro to Salesforce Lightning for Admins
Desynit
 
Lightning Components - Down Under Dreaming Sydney
Techforce Services
 
Salesforce lwc development workshops session #4
Rahul Gawale
 
Lightning Data Service
Rahul Malhotra
 
Salesforce lightning design -components for CRM
yahmad111
 
Lightning Design System and Components for Visualforce Developers
Salesforce Developers
 
Salesforce Lightning Component Framework Roadmap (TDX18)
Developer Force
 
Salesforce Lightning workshop
Shivanath Devinarayanan
 
Lightning Developer Week - Bangalore Salesforce Developer Group
Abhilash Kuntar
 
Lightning Components Explained
Atul Gupta(8X)
 
Building apps faster with lightning and winter '17
Salesforce Developers
 
Building Apps Faster with Lightning and Winter '17
Mark Adcock
 
Session 4/5 working with salesforce data including LDS
Hamza942706
 
Salesforce Lightning Development What Do You Need to Know.pdf
JPLoft Solutions
 
Salesforce Lightning workshop Hartford - 12 March
Jitendra Zaa
 
Lightning Workshop London
Keir Bowden
 
Build lightning components with salesforce dx
Shashank Srivatsavaya (ShashForce)
 
Lightning Web Components- Ep 4 - Navigation Services, LWC and Aura Interopera...
Nishant Singh Panwar
 
Suisse Romande SF DG - Lightning workshop
Gnanasekaran Thoppae
 
Lightning week - Paris DUG
Paris Salesforce Developer Group
 
Intro to Salesforce Lightning for Admins
Desynit
 
Ad

More from Nishant Singh Panwar (10)

PDF
Admin Certification Sales and Service Cloud
Nishant Singh Panwar
 
PDF
Letterkenny TrailheaDX 2020 Global Gathering
Nishant Singh Panwar
 
PDF
Salesforce Admin Certification Preparation : Security Model Dive In
Nishant Singh Panwar
 
PDF
Lightning Web Components- Ep 2 - Component Communication using Events
Nishant Singh Panwar
 
PDF
Differential Salesforce DX - Virtual Dreamin
Nishant Singh Panwar
 
PDF
Lightning Web Components- Ep 0 - Introduction
Nishant Singh Panwar
 
PDF
Power of Flows and Prepare for Salesforce Admin Certification
Nishant Singh Panwar
 
PDF
Salesforce Spring 20 Highlights
Nishant Singh Panwar
 
PDF
Letterkenny Developer Group Meet - 28 Jan 2020
Nishant Singh Panwar
 
PPTX
Lkdug meet 17_dec19
Nishant Singh Panwar
 
Admin Certification Sales and Service Cloud
Nishant Singh Panwar
 
Letterkenny TrailheaDX 2020 Global Gathering
Nishant Singh Panwar
 
Salesforce Admin Certification Preparation : Security Model Dive In
Nishant Singh Panwar
 
Lightning Web Components- Ep 2 - Component Communication using Events
Nishant Singh Panwar
 
Differential Salesforce DX - Virtual Dreamin
Nishant Singh Panwar
 
Lightning Web Components- Ep 0 - Introduction
Nishant Singh Panwar
 
Power of Flows and Prepare for Salesforce Admin Certification
Nishant Singh Panwar
 
Salesforce Spring 20 Highlights
Nishant Singh Panwar
 
Letterkenny Developer Group Meet - 28 Jan 2020
Nishant Singh Panwar
 
Lkdug meet 17_dec19
Nishant Singh Panwar
 

Recently uploaded (20)

DOCX
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
AVTRON Technologies LLC
 
PDF
Shreyas_Phanse_Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
SHREYAS PHANSE
 
PDF
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ
 
PDF
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PDF
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
AVTRON Technologies LLC
 
Shreyas_Phanse_Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
SHREYAS PHANSE
 
CIFDAQ's Token Spotlight: SKY - A Forgotten Giant's Comeback?
CIFDAQ
 
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 

Lightning Web Components- Ep 3 - Working with Salesforce data and LDS

  • 1. Letterkenny, Ireland Developers Group Lk_Sf_Devs LkTrailblazers Welcome to our virtual learning series Learn Lightning Web Components in 5 Days Day 4 - Working with Salesforce Data including LDS
  • 3. Nishant Singh Panwar Community Group Leader Salesforce Developer and Consultant ● 6 Years of Salesforce Implementation Experience ● 8x Salesforce Certified - Application Architect UDAIPUR Nishant_SP
  • 5. Sahil Batra (Director @ MTX Group Inc.) Industry Experience Having 9 year of experience in IT Industry and 6 years in Salesforce ecosystem.Started my Salesforce career as Developer and have played various roles like Technical Lead , Technical Architect and Corporate Trainer. Professional Highlights ● Manage Salesforce trainings and certifications. ● Work as Technical Architect / Principal Developer on Projects. ● Hold 5 Salesforce Certifications and 1 Google certification. ● Conducted Training in India, US , Australia and UK. ● Trained 500+ freshers and 300+ lateral folks in Salesforce. ● Trained 800+ students and 250+ faculty members. Email : [email protected] Twitter : sahilbatraa18
  • 6. Topics covered in Session 3 ● Event Introduction ● Create Custom Events ● Declarative Event Handling ● Attach event listener Programmatically ● Event Propagation ● Communication b/w independent components ● pubsub ● Export Javascript Code Recordings available @ http://bit.ly/lksfvideos
  • 7. Working With Salesforce Data ● Use base components built on lightning data service ● Use LDS wire adapter and functions. ● Use Apex
  • 8. Lightning Data Service ● Build on User Interface API ● Support All Custom & Standard Object supported by User Interface API ● External Objects, Person Accounts and Custom Metadata Types are not included. ● Respect CRUD Access, FLS and Security Setting. ● Components ○ lightning-record-edit-form ○ lightning-record-form ○ lightning-record-view-form
  • 9. Lightning Data Service ● Uses wire adapters and functions in lightning/ui*Api ● Apex methods are imported via @salesforce/apex/methodName ● During record change, all component using @wire adapter receive new value if ○ LWC mutates the record. ○ LDS cache expire and @wire reads the record.
  • 10. Lightning Data Service does lot of work ● Loads record data progressively , increase performance. ● Cache result on the client ● Invalidate cache entries when dependent Salesforce data and metadata changes. ● Optimize server calls by bulkifying and deduping requests.
  • 11. Lightning Base Components ● lightning-record-edit-form → Display editable form ● lightning-record-view-form → Display a read only form ● lightning-record-form → Support edit,view and read only modes.
  • 12. Load a Record Demo 18 : LoadRecords
  • 13. Edit a Record Demo 19 : EditRecords
  • 14. Create a Record Demo 20 : CreateRecords Demo 21 : CreateRecords
  • 15. Calling Apex Methods ● Apex Calls ○ @wire ○ imperatively ● Import Apex Method ● To Call Apex Method ○ Wire a property ○ Wire a function ○ Call a method imperatively
  • 16. Calling Apex using @wire Demo 22 : WireApexCall
  • 17. Calling Apex using imperative call Demo 23 : ImperativeApexCall
  • 18. Refreshapex Demo Demo 24 : refreshApex
  • 19. Post your Queries @ bit.ly/lwcquery Trailmix on Trailhead for Practice Search for Lightning Web Components in 5 Days
  • 20. Coming Up ● 28 May - Navigation Services, Aura with LWC interoperability & extra topics. bit.ly/lwcday5 RSVP LWC QUIZ Win Swag