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
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

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

  • 1.
    Letterkenny, Ireland Developers Group Lk_Sf_DevsLkTrailblazers 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 CommunityGroup Leader Salesforce Developer and Consultant ● 6 Years of Salesforce Implementation Experience ● 8x Salesforce Certified - Application Architect UDAIPUR Nishant_SP
  • 4.
  • 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 : sahilbatraa@gmail.com Twitter : sahilbatraa18
  • 6.
    Topics covered inSession 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 SalesforceData ● 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 Servicedoes 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 Demo18 : LoadRecords
  • 13.
    Edit a Record Demo19 : EditRecords
  • 14.
    Create a Record Demo20 : 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 usingimperative call Demo 23 : ImperativeApexCall
  • 18.
  • 19.
    Post your Queries@ bit.ly/lwcquery Trailmix on Trailhead for Practice Search for Lightning Web Components in 5 Days
  • 20.
    Coming Up ● 28May - Navigation Services, Aura with LWC interoperability & extra topics. bit.ly/lwcday5 RSVP LWC QUIZ Win Swag