SlideShare a Scribd company logo
1 of 13
Download to read offline
Journey from Classic Salesforce Development to Lightning
Development
Sunil Kumar
7x Salesforce Certified | Developer | Blogger
@sunil02kumar
Blog: https://sunil02kumar.blogspot.in
@sunil02kumar
Agenda
@sunil02kumar
Mobile SDK Development
Salesforce Mobile Classic
Salesforce Lightning
Difference between Salesforce Classic Development
and Lightning
Reasons to Switch to Salesforce Lightning
Understanding Lightning Components
Lightning Events
Raising and Handling custom events in Lightning
Demo
Q&A
Mobile SDK Development
@sunil02kumar
 Salesforce Mobile SDK gives developers the tools to build mobile applications with customized user
experiences.
 This allows you to create your own app and distribute it through Google Play Store or Apple App
Store
Salesforce Mobile Classic
@sunil02kumar
Salesforce Mobile Classic gives you mobile access to your Salesforce data, tasks, and calendar, and
integrates the data with your mail and phone
Offline capabilities.
Salesforce Mobile Classic data is defined by a mobile configuration created by your administrator,
who identifies which objects, records, and specific fields are relevant to your daily work needs.
Allows users to view, edit, and delete the records stored on your device, or create new records.
A separate Salesforce Mobile Classic license is required for each user who uses a mobile device to
access Salesforce.
Visualforce Tabs and Web Tabs can be access only if device is connected to internet because the
tabs are launched in an embedded browser.
Salesforce Lightning
@sunil02kumar
Difference between Salesforce Classic Development and
Lightning
@sunil02kumar
Modal
(Objects)
View
(VF Pages & VF
Components)
Controller
(Apex)
Modal
(Objects)
View
(Lightning
Components)
Client Side Controller
(.js file)
Server Side Controller
(Apex)
Reasons to Switch to Salesforce Lightning
@sunil02kumar
Reduce Development Effort
Compatible with different devices
Component based and Event driven
architecture
Compatible with Salesforce new releases
Understanding Lightning Components
@sunil02kumar
Attributes which
controls the
data on UI
Contains
controller.js and
helper.js
@AuraEnabled
static methods
Lightning Events
@sunil02kumar
Event acts as channel to communicate between components.
Events are usually triggered by a user action
Events can contain attributes that can be set before the
event is fired and read when the event is handled.
Component which register for event can send information
through controller.
Component specifying handler for event can read information
passed by other event.
@sunil02kumar
Event- carAccident
Notifier- Fire Event
Hospital- Event Handler
Fire Event – Calling
Hospital
carAccident.evt
<aura:event type="COMPONENT" description="Event template" >
<aura:attribute name="msg" type="String" access="GLOBAL"/>
</aura:event>
carAccidentNotifier.cmp
<aura:component >
<aura:registerEvent name="newCarAccident" type="c:carAccident"/>
<h1>Car Accident Example</h1>
<ui:button label="Accident Took Place"
press="{!c. fireCarAccidentEvent }"/>
</aura:component>
carAccidentNotifierController.js
({
fireCarAccidentEvent : function(component, event, helper) {
var accidentEvent = component.getEvent("newCarAccident");
accidentEvent.setParams({"msg":"there is car Accident. Send
ambulance."});
accidentEvent.fire();
}
})
CarAccidentHandler.cmp
<aura:component >
<aura:attribute name="msgFromNotifier" type="String"/>
<!-- same name as that of notifier registerEvent name attribute -->
<aura:handler name="newCarAccident" event="c:carAccident"
action="{!c.handleNotification}"/>
<!-- Handler should contains notifier component-->
<c:carAccidentNotifier />
<div>message from Notifier : <b>{!v.msgFromNotifier}</b></div>
</aura:component>
CarAccidentHandlerController.js
({
handleNotification : function(component, event,
helper){
var sentMessage= event.getParam("msg");
component.set("v.msgFromNotifier",
sentMessage);
}
})
Raising and Handling custom events in Lightning
@sunil02kumar
Demo
 Github Repo URL:
https://github.com/Sunil02kumar/Lightning-Events-Demo-Code_PUG
Short URL - https://goo.gl/EwhzWd
 Unmanaged Package Installation URL:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04t900000002eC6
Short URL- https://goo.gl/SMao1o
@sunil02kumar
@sunil02kumar

More Related Content

What's hot

2010 08-26-smart-architecture
2010 08-26-smart-architecture2010 08-26-smart-architecture
2010 08-26-smart-architecture
CHIP
 

What's hot (13)

Change Notifications in Azure Event Hubs-April 2021
Change Notifications in Azure Event Hubs-April 2021Change Notifications in Azure Event Hubs-April 2021
Change Notifications in Azure Event Hubs-April 2021
 
24032022 Zero Trust for Developers Pub.pdf
24032022 Zero Trust for Developers Pub.pdf24032022 Zero Trust for Developers Pub.pdf
24032022 Zero Trust for Developers Pub.pdf
 
How to Use Stormpath in angular js
How to Use Stormpath in angular jsHow to Use Stormpath in angular js
How to Use Stormpath in angular js
 
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
 
Automation in Digital Cloud Labs
Automation in Digital Cloud LabsAutomation in Digital Cloud Labs
Automation in Digital Cloud Labs
 
Microsoft Graph developer community call-March 2020
Microsoft Graph developer community call-March 2020Microsoft Graph developer community call-March 2020
Microsoft Graph developer community call-March 2020
 
2010 08-26-smart-architecture
2010 08-26-smart-architecture2010 08-26-smart-architecture
2010 08-26-smart-architecture
 
12. Android Basic Google Map
12. Android Basic Google Map12. Android Basic Google Map
12. Android Basic Google Map
 
Building i pad apps in pure java with vaadin
Building i pad apps in pure java with vaadinBuilding i pad apps in pure java with vaadin
Building i pad apps in pure java with vaadin
 
Azure AD Presentation - @ BITPro - Ajay
Azure AD Presentation - @ BITPro - AjayAzure AD Presentation - @ BITPro - Ajay
Azure AD Presentation - @ BITPro - Ajay
 
Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)
 
Osx workflow guide (1)
Osx workflow guide (1)Osx workflow guide (1)
Osx workflow guide (1)
 
Forge: Under the Hood
Forge: Under the HoodForge: Under the Hood
Forge: Under the Hood
 

Similar to Journey from classic Salesforce development to lightning Developmemt

Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)
Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)
Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)
Yury Bondarau
 
Unlocking the Power of Salesforce Integrations with Confluent
Unlocking the Power of Salesforce Integrations with ConfluentUnlocking the Power of Salesforce Integrations with Confluent
Unlocking the Power of Salesforce Integrations with Confluent
AaronLieberman5
 
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptxLWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
Vkrish Peru
 

Similar to Journey from classic Salesforce development to lightning Developmemt (20)

Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)
Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)
Aura Framework and Lightning (Nikolay Zenko and Alexey Filippov)
 
Debugging lightning components
Debugging lightning componentsDebugging lightning components
Debugging lightning components
 
Debugging lightning components
Debugging lightning componentsDebugging lightning components
Debugging lightning components
 
Salesforce Lightning Development What Do You Need to Know.pdf
Salesforce Lightning Development What Do You Need to Know.pdfSalesforce Lightning Development What Do You Need to Know.pdf
Salesforce Lightning Development What Do You Need to Know.pdf
 
Salesforce Summer ’17 Release: Blazing a Trail to Business Productivity |
Salesforce Summer ’17 Release: Blazing a Trail to Business Productivity | Salesforce Summer ’17 Release: Blazing a Trail to Business Productivity |
Salesforce Summer ’17 Release: Blazing a Trail to Business Productivity |
 
Venkatesh SFDC Resume
Venkatesh SFDC ResumeVenkatesh SFDC Resume
Venkatesh SFDC Resume
 
Components, tools and services useful for the lightning developers
Components, tools and services useful for the lightning developers Components, tools and services useful for the lightning developers
Components, tools and services useful for the lightning developers
 
Salesforce Lightning workshop Hartford - 12 March
Salesforce Lightning workshop Hartford - 12 MarchSalesforce Lightning workshop Hartford - 12 March
Salesforce Lightning workshop Hartford - 12 March
 
Salesforce Lightning App Development_ The Comprehensive Guide 2024.pdf
Salesforce Lightning App Development_ The Comprehensive Guide 2024.pdfSalesforce Lightning App Development_ The Comprehensive Guide 2024.pdf
Salesforce Lightning App Development_ The Comprehensive Guide 2024.pdf
 
Unlocking the Power of Salesforce Integrations with Confluent
Unlocking the Power of Salesforce Integrations with ConfluentUnlocking the Power of Salesforce Integrations with Confluent
Unlocking the Power of Salesforce Integrations with Confluent
 
Salesforce Spring 2020 New Developer Features
Salesforce Spring 2020 New Developer FeaturesSalesforce Spring 2020 New Developer Features
Salesforce Spring 2020 New Developer Features
 
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptxLWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
LWC_Workbxcgbgfbgfbfgbfgbfbfbshop_Day2.pptx
 
When Mobile (Android) met Cloud
When Mobile (Android) met CloudWhen Mobile (Android) met Cloud
When Mobile (Android) met Cloud
 
Going Offline with Salesforce1 Mobile SDK
Going Offline with Salesforce1 Mobile SDKGoing Offline with Salesforce1 Mobile SDK
Going Offline with Salesforce1 Mobile SDK
 
Salesforce Lightning workshop
Salesforce Lightning workshopSalesforce Lightning workshop
Salesforce Lightning workshop
 
Dreamforce'15 wrap up by manish
Dreamforce'15 wrap up by manishDreamforce'15 wrap up by manish
Dreamforce'15 wrap up by manish
 
See Androids Fighting: Connect Salesforce with Your Android Wear Watch
See Androids Fighting: Connect Salesforce with Your Android Wear WatchSee Androids Fighting: Connect Salesforce with Your Android Wear Watch
See Androids Fighting: Connect Salesforce with Your Android Wear Watch
 
Lightning Components Introduction
Lightning Components IntroductionLightning Components Introduction
Lightning Components Introduction
 
Lightning Developer Week - Bangalore Salesforce Developer Group
Lightning Developer Week - Bangalore Salesforce Developer GroupLightning Developer Week - Bangalore Salesforce Developer Group
Lightning Developer Week - Bangalore Salesforce Developer Group
 
[MBF2] Webinar plate-forme Salesforce #1
[MBF2] Webinar plate-forme Salesforce #1[MBF2] Webinar plate-forme Salesforce #1
[MBF2] Webinar plate-forme Salesforce #1
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Journey from classic Salesforce development to lightning Developmemt

  • 1. Journey from Classic Salesforce Development to Lightning Development Sunil Kumar 7x Salesforce Certified | Developer | Blogger @sunil02kumar Blog: https://sunil02kumar.blogspot.in @sunil02kumar
  • 2. Agenda @sunil02kumar Mobile SDK Development Salesforce Mobile Classic Salesforce Lightning Difference between Salesforce Classic Development and Lightning Reasons to Switch to Salesforce Lightning Understanding Lightning Components Lightning Events Raising and Handling custom events in Lightning Demo Q&A
  • 3. Mobile SDK Development @sunil02kumar  Salesforce Mobile SDK gives developers the tools to build mobile applications with customized user experiences.  This allows you to create your own app and distribute it through Google Play Store or Apple App Store
  • 4. Salesforce Mobile Classic @sunil02kumar Salesforce Mobile Classic gives you mobile access to your Salesforce data, tasks, and calendar, and integrates the data with your mail and phone Offline capabilities. Salesforce Mobile Classic data is defined by a mobile configuration created by your administrator, who identifies which objects, records, and specific fields are relevant to your daily work needs. Allows users to view, edit, and delete the records stored on your device, or create new records. A separate Salesforce Mobile Classic license is required for each user who uses a mobile device to access Salesforce. Visualforce Tabs and Web Tabs can be access only if device is connected to internet because the tabs are launched in an embedded browser.
  • 6. Difference between Salesforce Classic Development and Lightning @sunil02kumar Modal (Objects) View (VF Pages & VF Components) Controller (Apex) Modal (Objects) View (Lightning Components) Client Side Controller (.js file) Server Side Controller (Apex)
  • 7. Reasons to Switch to Salesforce Lightning @sunil02kumar Reduce Development Effort Compatible with different devices Component based and Event driven architecture Compatible with Salesforce new releases
  • 8. Understanding Lightning Components @sunil02kumar Attributes which controls the data on UI Contains controller.js and helper.js @AuraEnabled static methods
  • 9. Lightning Events @sunil02kumar Event acts as channel to communicate between components. Events are usually triggered by a user action Events can contain attributes that can be set before the event is fired and read when the event is handled. Component which register for event can send information through controller. Component specifying handler for event can read information passed by other event.
  • 10. @sunil02kumar Event- carAccident Notifier- Fire Event Hospital- Event Handler Fire Event – Calling Hospital carAccident.evt <aura:event type="COMPONENT" description="Event template" > <aura:attribute name="msg" type="String" access="GLOBAL"/> </aura:event> carAccidentNotifier.cmp <aura:component > <aura:registerEvent name="newCarAccident" type="c:carAccident"/> <h1>Car Accident Example</h1> <ui:button label="Accident Took Place" press="{!c. fireCarAccidentEvent }"/> </aura:component> carAccidentNotifierController.js ({ fireCarAccidentEvent : function(component, event, helper) { var accidentEvent = component.getEvent("newCarAccident"); accidentEvent.setParams({"msg":"there is car Accident. Send ambulance."}); accidentEvent.fire(); } }) CarAccidentHandler.cmp <aura:component > <aura:attribute name="msgFromNotifier" type="String"/> <!-- same name as that of notifier registerEvent name attribute --> <aura:handler name="newCarAccident" event="c:carAccident" action="{!c.handleNotification}"/> <!-- Handler should contains notifier component--> <c:carAccidentNotifier /> <div>message from Notifier : <b>{!v.msgFromNotifier}</b></div> </aura:component> CarAccidentHandlerController.js ({ handleNotification : function(component, event, helper){ var sentMessage= event.getParam("msg"); component.set("v.msgFromNotifier", sentMessage); } }) Raising and Handling custom events in Lightning
  • 11. @sunil02kumar Demo  Github Repo URL: https://github.com/Sunil02kumar/Lightning-Events-Demo-Code_PUG Short URL - https://goo.gl/EwhzWd  Unmanaged Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t900000002eC6 Short URL- https://goo.gl/SMao1o