SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Downloaden Sie, um offline zu lesen
Clicks Vs. Code 
An Interactive Debate 
Christopher Alun Lewis 
Force.com MVP 
@ChrisAlunLewis 
Simon Lawrence 
Force.com MVP 
@srlawr
Welcome to Clicks Vs. Code 
There are two main ways to get things done on Salesforce 
• Rarely black and white as to which provides the best 
solution 
• This session will make you think about your options in 
different scenarios
Welcome to Clicks Vs. Code 
•We will present three requirement scenarios 
• We will then present a clicks solution, and a code solution 
•YOU will then vote which you would implement 
• Get involved!
Scenario 1 
Copy and process field data across a relationship 
When an invoice line custom object is created, we need to: 
• Copy the price field from a parent product object 
• Copy the tax rate field from a custom setting 
• Create a task to manually check stock when QTY > 100
Case for Clicks 
Create a workflow rule on line item object creation and field updates to copy 
the price and tax.
Case for Clicks 
Create a workflow rule on line item object creation and field updates to copy 
the price and tax.
Case for Clicks 
Another workflow rule, checks Quantity amount and creates a task if needed
Case for Clicks 
Another workflow rule, checks Quantity amount and creates a task if needed
Case for Clicks 
Benefits: 
• Simple to setup 
• Can be updated and altered on live 
• Responds to data model changes automatically 
Drawbacks: 
• No requirement to test the calculations and vulnerable to interference 
• Very limited customization of the Task 
• Difficult to see the order of execution
Building with Code 
• Write test class and cover core scenarios 
• Create a trigger on Creation of an Invoice Line 
• Noting bulkification, load the relevant product details and 
copy into the Invoice Line records 
•Create detailed task records for > 100 Quantity cases
Building with Code
Building with Code 
Benefits: 
• All the logic is in one, concise place 
• Complete flexibility in field and data access/usage 
• Can create dynamic Task owner, subject and description 
• Requires test coverage which enforces functionality 
Drawbacks: 
• Has to be promoted via changesets if updated 
• Requires manual maintenance if data model changes 
• Will take longer to develop, test and promote
Scenario 1 voting 
So where do you stand? 
Clicks 
Code
Scenario 2 
Summarize Opportunity data on Accounts 
On the Account page we would like to see: 
• The total value of all related Opportunities 
• The closed won ratio of related Opportunities 
• The Average value of related Opportunities
Case for Clicks 
Use roll up summary fields 
to obtain: 
• The related Opportunity count 
• Won Opportunity count 
• The related Opportunity total value
Case for Clicks 
Use roll up summary fields 
to obtain: 
• The related Opportunity count 
• Won Opportunity count 
• The related Opportunity total value
Case for Clicks 
Use roll up summary fields 
to obtain: 
• The related Opportunity count 
• Won Opportunity count 
• The related Opportunity total value
Case for Clicks 
Use formula fields to calculate: 
•The Closed Won ratio 
•The Average Value amount
Case for Clicks 
Benefits: 
• Simple to setup / five fields to completion 
• We can adapt the method to do more complex calculations quickly 
Drawbacks: 
• Roll up summaries are limited, only 10 per object 
• This method only works for objects that have master detail relationships 
• Roll up summaries don’t work on formula fields
Building with Code 
Create 3 new fields on the Account object: 
• Total Opportunity amount 
• Closed Won Ratio 
• Average Opportunity amount
Building with Code 
• Write test methods 
• Write a new trigger on Opportunity to update related 
Account totals when an Opportunity is created, updated, 
deleted or undeleted
Building with Code
Building with Code
Building with Code 
Benefits: 
• Excellent reusability… adopt a pattern and the same code can be used many 
times for many different object relationships 
• Calculations can be much more complex, involving several related objects 
• Can traverse Lookup relationships and summarise Formulae 
• Test methods can be used to verify results 
Drawbacks: 
• Writing code and related test methods is time consuming 
• Less adaptable in production
Scenario 2 voting 
So where do you stand? 
Clicks 
Code
Scenario 3 
Graphical customer relationship view 
We want to view our entire relationship with a customer 
• The pipeline of all related Opportunities 
• The number and status of all related Cases 
• A history of recent Activities
Case for Clicks 
Simple… Reports and Dashboards! 
Create a collection of base reports 
• Opportunities 
• Cases 
• Activities with Accounts
Case for Clicks 
Create an Accounts Data dashboard leveraging the reports 
to show all Account data
Case for Clicks 
Use a Dashboard filter to allow the user to select which Account 
they want to view data for:
Case for Clicks 
Benefits: 
• Simple and quick to create (3 Reports + 1 Dashboard) 
• Can be customised to individual users requirements (specific Account views) 
• Clicking on the charts actually drills down into data report 
Drawbacks: 
• A maximum of 30 filters can be used per dashboard 
• A manual filter needs to be created for each Account 
• Load times between selections is fairly slow (20-30 seconds)
Building with Code 
Custom Visualforce Page with Account selector: 
•Leverages Apex:Chart Component tags 
•Account combo box dynamically populated through Apex 
•Upon selection, automatically refreshes page
Building with Code 
OR Custom Visualforce on the Account Page: 
• Use a controller extension 
to get Account/Children details 
• Build Account charts based 
on retrieved data 
• Place Visualforce page on 
Standard Account Page
Building with Code 
As simple as a section of Visualforce code
Building with Code 
And a controller extension to marshall the data about
Building with Code 
Benefits: 
• No limitations on how many different Accounts you can view. 
• Fast screen refresh rates. 
• Ability to create actions based on chart results. 
Drawbacks: 
• Time consuming to build. 
• Difficult to schedule content in an email. 
• Can’t easily drill down into reports data.
Scenario 3 voting 
So where do you stand? 
Clicks 
Code
The Wrap up 
There is no “right answer” when it comes to clicks vs. code. 
Attribute Clicks Code 
Time to develop Short Long 
Flexibility Some Lots 
Limitations Restricted by platform Governor Limits 
Adaptability Some Great
Any questions? 
Christopher Alun Lewis 
Force.com MVP 
@ChrisAlunLewis 
Simon Lawrence 
Force.com MVP 
@srlawr
Clicks vs code df14pptx

Weitere ähnliche Inhalte

Andere mochten auch

Improve Account Data Quality with Lightning
Improve Account Data Quality with LightningImprove Account Data Quality with Lightning
Improve Account Data Quality with LightningSalesforce Admins
 
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Salesforce Developers
 
Salesforce course-training-material
Salesforce course-training-materialSalesforce course-training-material
Salesforce course-training-materialsfdc232
 
Salesforce Certifications:Explained
Salesforce Certifications:ExplainedSalesforce Certifications:Explained
Salesforce Certifications:ExplainedAtul Gupta(8X)
 
Salesforce Developer User Group Munich - October 2016
Salesforce Developer User Group Munich - October 2016Salesforce Developer User Group Munich - October 2016
Salesforce Developer User Group Munich - October 2016René Winkelmeyer
 
Apex for Admins: Beyond the Basics (Part 2)
Apex for Admins: Beyond the Basics (Part 2) Apex for Admins: Beyond the Basics (Part 2)
Apex for Admins: Beyond the Basics (Part 2) Salesforce Developers
 
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)Salesforce Developers
 
Force.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.comForce.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.comSalesforce Developers
 
Equip Your #AwesomeAdmin Toolkit with Process Automation Tools
Equip Your #AwesomeAdmin Toolkit with Process Automation ToolsEquip Your #AwesomeAdmin Toolkit with Process Automation Tools
Equip Your #AwesomeAdmin Toolkit with Process Automation ToolsSalesforce Admins
 
Business Process Mapping for Salesforce Admins
Business Process Mapping for Salesforce AdminsBusiness Process Mapping for Salesforce Admins
Business Process Mapping for Salesforce AdminsSalesforce Admins
 
Introduction to the Salesforce Security Model
Introduction to the Salesforce Security ModelIntroduction to the Salesforce Security Model
Introduction to the Salesforce Security ModelSalesforce Developers
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialCreately
 

Andere mochten auch (16)

Improve Account Data Quality with Lightning
Improve Account Data Quality with LightningImprove Account Data Quality with Lightning
Improve Account Data Quality with Lightning
 
Interview questions
Interview questionsInterview questions
Interview questions
 
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
 
Salesforce course-training-material
Salesforce course-training-materialSalesforce course-training-material
Salesforce course-training-material
 
Salesforce Certifications:Explained
Salesforce Certifications:ExplainedSalesforce Certifications:Explained
Salesforce Certifications:Explained
 
Salesforce Developer User Group Munich - October 2016
Salesforce Developer User Group Munich - October 2016Salesforce Developer User Group Munich - October 2016
Salesforce Developer User Group Munich - October 2016
 
Apex for Admins: Beyond the Basics (Part 2)
Apex for Admins: Beyond the Basics (Part 2) Apex for Admins: Beyond the Basics (Part 2)
Apex for Admins: Beyond the Basics (Part 2)
 
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
 
Force.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.comForce.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.com
 
Equip Your #AwesomeAdmin Toolkit with Process Automation Tools
Equip Your #AwesomeAdmin Toolkit with Process Automation ToolsEquip Your #AwesomeAdmin Toolkit with Process Automation Tools
Equip Your #AwesomeAdmin Toolkit with Process Automation Tools
 
Salesforce Data Structures
Salesforce Data StructuresSalesforce Data Structures
Salesforce Data Structures
 
Salesforce crm projects
Salesforce crm projects Salesforce crm projects
Salesforce crm projects
 
Business Process Mapping for Salesforce Admins
Business Process Mapping for Salesforce AdminsBusiness Process Mapping for Salesforce Admins
Business Process Mapping for Salesforce Admins
 
Introduction to the Salesforce Security Model
Introduction to the Salesforce Security ModelIntroduction to the Salesforce Security Model
Introduction to the Salesforce Security Model
 
Salesforce DX & GitHub Deep Dive
Salesforce DX & GitHub Deep DiveSalesforce DX & GitHub Deep Dive
Salesforce DX & GitHub Deep Dive
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 

Ähnlich wie Clicks vs code df14pptx

Finit formula and business rule efficiency in one stream
Finit   formula and business rule efficiency in one streamFinit   formula and business rule efficiency in one stream
Finit formula and business rule efficiency in one streamfinitsolutions
 
Recap new features and functionality
Recap new features and functionalityRecap new features and functionality
Recap new features and functionalityDavid Dourgarian
 
Sage100 Tips and Tricks - Spring 2020
Sage100 Tips and Tricks - Spring 2020Sage100 Tips and Tricks - Spring 2020
Sage100 Tips and Tricks - Spring 2020RKLeSolutions
 
Process Builder Automation and Considerations
Process Builder Automation and ConsiderationsProcess Builder Automation and Considerations
Process Builder Automation and ConsiderationsSathishkumar Periyasamy
 
#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode
#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode
#GeodeSummit - Wall St. Derivative Risk Solutions Using GeodePivotalOpenSourceHub
 
Building Wall St Risk Systems with Apache Geode
Building Wall St Risk Systems with Apache GeodeBuilding Wall St Risk Systems with Apache Geode
Building Wall St Risk Systems with Apache GeodeAndre Langevin
 
Advanced Test Design Methods
Advanced Test Design MethodsAdvanced Test Design Methods
Advanced Test Design Methodssharon elgarat
 
Shop24 Presentation Slide sixth semester
Shop24 Presentation Slide sixth semesterShop24 Presentation Slide sixth semester
Shop24 Presentation Slide sixth semesterAmrit Timalsina
 
Azure machine learning
Azure machine learningAzure machine learning
Azure machine learningSimone Caldaro
 
Managing Third-Party Royalties
Managing Third-Party RoyaltiesManaging Third-Party Royalties
Managing Third-Party RoyaltiesDonald Fernandes
 
Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...
Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...
Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...Salesforce Admins
 
In Mind Cloud - Product Release - 2105
In Mind Cloud - Product Release - 2105In Mind Cloud - Product Release - 2105
In Mind Cloud - Product Release - 2105In Mind Cloud
 
Data Migration Done Right for Microsoft Dynamics 365/CRM
Data Migration Done Right for Microsoft Dynamics 365/CRMData Migration Done Right for Microsoft Dynamics 365/CRM
Data Migration Done Right for Microsoft Dynamics 365/CRMDaniel Cai
 
What's New in Microsoft Dynamics NAV 2018
What's New in Microsoft Dynamics NAV 2018What's New in Microsoft Dynamics NAV 2018
What's New in Microsoft Dynamics NAV 2018Callie Wagner
 
Synergy TRMG Final
Synergy TRMG FinalSynergy TRMG Final
Synergy TRMG FinalMichael Camp
 
SFDC Other Platform Features
SFDC Other Platform FeaturesSFDC Other Platform Features
SFDC Other Platform FeaturesSujit Kumar
 

Ähnlich wie Clicks vs code df14pptx (20)

Finit formula and business rule efficiency in one stream
Finit   formula and business rule efficiency in one streamFinit   formula and business rule efficiency in one stream
Finit formula and business rule efficiency in one stream
 
Recap new features and functionality
Recap new features and functionalityRecap new features and functionality
Recap new features and functionality
 
Sage100 Tips and Tricks - Spring 2020
Sage100 Tips and Tricks - Spring 2020Sage100 Tips and Tricks - Spring 2020
Sage100 Tips and Tricks - Spring 2020
 
Process Builder Automation and Considerations
Process Builder Automation and ConsiderationsProcess Builder Automation and Considerations
Process Builder Automation and Considerations
 
#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode
#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode
#GeodeSummit - Wall St. Derivative Risk Solutions Using Geode
 
Building Wall St Risk Systems with Apache Geode
Building Wall St Risk Systems with Apache GeodeBuilding Wall St Risk Systems with Apache Geode
Building Wall St Risk Systems with Apache Geode
 
Advanced Test Design Methods
Advanced Test Design MethodsAdvanced Test Design Methods
Advanced Test Design Methods
 
Shop24 Presentation Slide sixth semester
Shop24 Presentation Slide sixth semesterShop24 Presentation Slide sixth semester
Shop24 Presentation Slide sixth semester
 
Defining tasks for User Stories
Defining tasks for User StoriesDefining tasks for User Stories
Defining tasks for User Stories
 
Lightning Process Builder
Lightning Process BuilderLightning Process Builder
Lightning Process Builder
 
Lightning Process Builder
Lightning Process BuilderLightning Process Builder
Lightning Process Builder
 
Azure machine learning
Azure machine learningAzure machine learning
Azure machine learning
 
Managing Third-Party Royalties
Managing Third-Party RoyaltiesManaging Third-Party Royalties
Managing Third-Party Royalties
 
Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...
Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...
Transform your Entire Customer Life Cycle, at Enterprise Scale by Marc Aubin ...
 
In Mind Cloud - Product Release - 2105
In Mind Cloud - Product Release - 2105In Mind Cloud - Product Release - 2105
In Mind Cloud - Product Release - 2105
 
Data Migration Done Right for Microsoft Dynamics 365/CRM
Data Migration Done Right for Microsoft Dynamics 365/CRMData Migration Done Right for Microsoft Dynamics 365/CRM
Data Migration Done Right for Microsoft Dynamics 365/CRM
 
What's New in Microsoft Dynamics NAV 2018
What's New in Microsoft Dynamics NAV 2018What's New in Microsoft Dynamics NAV 2018
What's New in Microsoft Dynamics NAV 2018
 
General 06 scribe online or insight
General 06   scribe online or insightGeneral 06   scribe online or insight
General 06 scribe online or insight
 
Synergy TRMG Final
Synergy TRMG FinalSynergy TRMG Final
Synergy TRMG Final
 
SFDC Other Platform Features
SFDC Other Platform FeaturesSFDC Other Platform Features
SFDC Other Platform Features
 

Kürzlich hochgeladen

[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdfSteve Caron
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonApplitools
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLionel Briand
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesVictoriaMetrics
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...OnePlan Solutions
 
Advantages of Cargo Cloud Solutions.pptx
Advantages of Cargo Cloud Solutions.pptxAdvantages of Cargo Cloud Solutions.pptx
Advantages of Cargo Cloud Solutions.pptxRTS corp
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingShane Coughlan
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfkalichargn70th171
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogueitservices996
 
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxUnderstanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxSasikiranMarri
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jNeo4j
 

Kürzlich hochgeladen (20)

[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 Updates
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
 
Advantages of Cargo Cloud Solutions.pptx
Advantages of Cargo Cloud Solutions.pptxAdvantages of Cargo Cloud Solutions.pptx
Advantages of Cargo Cloud Solutions.pptx
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogue
 
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxUnderstanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
 

Clicks vs code df14pptx

  • 1. Clicks Vs. Code An Interactive Debate Christopher Alun Lewis Force.com MVP @ChrisAlunLewis Simon Lawrence Force.com MVP @srlawr
  • 2. Welcome to Clicks Vs. Code There are two main ways to get things done on Salesforce • Rarely black and white as to which provides the best solution • This session will make you think about your options in different scenarios
  • 3. Welcome to Clicks Vs. Code •We will present three requirement scenarios • We will then present a clicks solution, and a code solution •YOU will then vote which you would implement • Get involved!
  • 4. Scenario 1 Copy and process field data across a relationship When an invoice line custom object is created, we need to: • Copy the price field from a parent product object • Copy the tax rate field from a custom setting • Create a task to manually check stock when QTY > 100
  • 5. Case for Clicks Create a workflow rule on line item object creation and field updates to copy the price and tax.
  • 6. Case for Clicks Create a workflow rule on line item object creation and field updates to copy the price and tax.
  • 7. Case for Clicks Another workflow rule, checks Quantity amount and creates a task if needed
  • 8. Case for Clicks Another workflow rule, checks Quantity amount and creates a task if needed
  • 9. Case for Clicks Benefits: • Simple to setup • Can be updated and altered on live • Responds to data model changes automatically Drawbacks: • No requirement to test the calculations and vulnerable to interference • Very limited customization of the Task • Difficult to see the order of execution
  • 10. Building with Code • Write test class and cover core scenarios • Create a trigger on Creation of an Invoice Line • Noting bulkification, load the relevant product details and copy into the Invoice Line records •Create detailed task records for > 100 Quantity cases
  • 12. Building with Code Benefits: • All the logic is in one, concise place • Complete flexibility in field and data access/usage • Can create dynamic Task owner, subject and description • Requires test coverage which enforces functionality Drawbacks: • Has to be promoted via changesets if updated • Requires manual maintenance if data model changes • Will take longer to develop, test and promote
  • 13. Scenario 1 voting So where do you stand? Clicks Code
  • 14. Scenario 2 Summarize Opportunity data on Accounts On the Account page we would like to see: • The total value of all related Opportunities • The closed won ratio of related Opportunities • The Average value of related Opportunities
  • 15. Case for Clicks Use roll up summary fields to obtain: • The related Opportunity count • Won Opportunity count • The related Opportunity total value
  • 16. Case for Clicks Use roll up summary fields to obtain: • The related Opportunity count • Won Opportunity count • The related Opportunity total value
  • 17. Case for Clicks Use roll up summary fields to obtain: • The related Opportunity count • Won Opportunity count • The related Opportunity total value
  • 18. Case for Clicks Use formula fields to calculate: •The Closed Won ratio •The Average Value amount
  • 19. Case for Clicks Benefits: • Simple to setup / five fields to completion • We can adapt the method to do more complex calculations quickly Drawbacks: • Roll up summaries are limited, only 10 per object • This method only works for objects that have master detail relationships • Roll up summaries don’t work on formula fields
  • 20. Building with Code Create 3 new fields on the Account object: • Total Opportunity amount • Closed Won Ratio • Average Opportunity amount
  • 21. Building with Code • Write test methods • Write a new trigger on Opportunity to update related Account totals when an Opportunity is created, updated, deleted or undeleted
  • 24. Building with Code Benefits: • Excellent reusability… adopt a pattern and the same code can be used many times for many different object relationships • Calculations can be much more complex, involving several related objects • Can traverse Lookup relationships and summarise Formulae • Test methods can be used to verify results Drawbacks: • Writing code and related test methods is time consuming • Less adaptable in production
  • 25. Scenario 2 voting So where do you stand? Clicks Code
  • 26. Scenario 3 Graphical customer relationship view We want to view our entire relationship with a customer • The pipeline of all related Opportunities • The number and status of all related Cases • A history of recent Activities
  • 27. Case for Clicks Simple… Reports and Dashboards! Create a collection of base reports • Opportunities • Cases • Activities with Accounts
  • 28. Case for Clicks Create an Accounts Data dashboard leveraging the reports to show all Account data
  • 29. Case for Clicks Use a Dashboard filter to allow the user to select which Account they want to view data for:
  • 30. Case for Clicks Benefits: • Simple and quick to create (3 Reports + 1 Dashboard) • Can be customised to individual users requirements (specific Account views) • Clicking on the charts actually drills down into data report Drawbacks: • A maximum of 30 filters can be used per dashboard • A manual filter needs to be created for each Account • Load times between selections is fairly slow (20-30 seconds)
  • 31. Building with Code Custom Visualforce Page with Account selector: •Leverages Apex:Chart Component tags •Account combo box dynamically populated through Apex •Upon selection, automatically refreshes page
  • 32. Building with Code OR Custom Visualforce on the Account Page: • Use a controller extension to get Account/Children details • Build Account charts based on retrieved data • Place Visualforce page on Standard Account Page
  • 33. Building with Code As simple as a section of Visualforce code
  • 34. Building with Code And a controller extension to marshall the data about
  • 35. Building with Code Benefits: • No limitations on how many different Accounts you can view. • Fast screen refresh rates. • Ability to create actions based on chart results. Drawbacks: • Time consuming to build. • Difficult to schedule content in an email. • Can’t easily drill down into reports data.
  • 36. Scenario 3 voting So where do you stand? Clicks Code
  • 37. The Wrap up There is no “right answer” when it comes to clicks vs. code. Attribute Clicks Code Time to develop Short Long Flexibility Some Lots Limitations Restricted by platform Governor Limits Adaptability Some Great
  • 38. Any questions? Christopher Alun Lewis Force.com MVP @ChrisAlunLewis Simon Lawrence Force.com MVP @srlawr