Demystifying Developer Tools

In this episode we will unravel the mysteries around the Development tools required for developing and debugging your code in Salesforce. Join us as you embark on this wonderful journey to become a champion Salesforce developer. We will talk about different Developer tools in Salesforce.

Developer Tools in Salesforce

There are different developer tool available in Salesforce. Goal of these tools are to give developers a more modern way of creating applications on top of the Salesforce platform. Let see list of top Developer tool :-

1. Developer Console

It’s available in Enterprise, Performance, Unlimited, Developer and Database.com editions. What you can do using Developer Console?

  1. Debugging and Troubleshooting
  2. Editing and navigating Source Code
  3. Testing and Validating Performance
  4. Executing Queries (SOQL and SOSL) and etc

2. Workbench

Salesforce Workbench is a powerful, web-based suite of tools designed to interact with Salesforce.com organizations via the Force.com APIs. Learn more about Salesforce workbench here.

  1. It is web-based suite of tools
  2. Workbench includes robust support for the Force.com Partner, Bulk, Rest, Streaming, Metadata, and Apex API
  3. Allows users to describe, query, manipulate, and migrate both data and metadata in Salesforce

3. VS Code

Visual Studio Code is recommended IDE for Salesforce development. Please check this post to learn about how to setup VsCode. Check below recording to learn about how to setup VsCode

YouTube video

4. Data Loader

Data Loader is a client application for the bulk import or export of data. Use it to insert, update, delete, or export Salesforce records. Data is the fundamental constituent of all business applications. A robust data management strategy goes a long way in building trust among users and drives system adoption.

What is Debugging?

What is Debugging
What is Debugging

Demystifying Developer Tools in Salesforce Video

  • Debugging Code in Salesforce
  • Introduction to Integrated Developer Environment (IDE)
  • Capabilities of various IDEs
  • Demo
  • Q & A
YouTube video

Further Learning

  • Developer Console Basics
  • Package.xml Metadata Management
  • Org Development Model
  • Quick Start: Visual Studio Code for Salesforce Development

Assignment

Complete below assignment to win $1000 Salesforce VoucherClick here for rule.

•Install VS code on your local machine along with Salesforce Extension.
•Create Project for Assignment you had created yesterday(Introduction to Apex-Part 2).
•Fetch MathCalculator class on your local machine using VS Code
•Add subtract() method which will accept 2 integer as parameter and return subtraction.
•Save this changes to your Salesforce org using VS code.

(Hint: Implement subtract() as private static methods invoked by a public instance doMath() method. The doMath() method will be invoked from the Execute Anonymous window)

Don’t forget to to check our next session on SOQL and SOQL. Check this post for all other session detail.

Summary

I hope session will help you to demystifying developer tools in Salesforce. Use above tool to increase your development power.

Amit Chaudhary
Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates.

He is a active blogger and founder of Apex Hours.

Articles: 460

26 Comments

  1. Solution:

    public class MathCalculator {

    private static integer add ( integer a, integer b ) {
    return a+b;
    }

    private static integer multiply ( integer a, integer b ) {
    return a*b;
    }

    private static integer subtract ( integer a, integer b ) {
    return a-b;
    }

    public MathCalculator() {
    }

    private static void printOutput ( integer output ) {
    system.debug(output);
    }

    public void doMath ( integer a, integer b, string operator ) {

    integer value = 0;

    if(operator == ‘+’) {
    value = add ( a, b );
    }

    else if(operator == ‘*’) {
    value = multiply ( a, b );
    }

    else if(operator == ‘-‘) {
    value = subtract ( a, b) ;
    }

    MathCalculator.printOutput(value);
    }
    }

  2. Code for Assignment Day 3
    ——————————–

    public class MathCalculator {
    private static Integer add(Integer a, Integer b){
    return a+b;
    }
    private static Integer multiply(Integer a, Integer b){
    return a*b;
    }

    private static Integer subtract(Integer a, Integer b){
    return a-b;
    }

    private static void printOutput(Integer a, Integer b){
    System.debug(‘Summation of 2 values:’ + add(a,b));
    System.debug(‘Multiplication of 2 values:’ + multiply(a,b));
    System.debug(‘Substraction of 2 values:’ + subtract(a,b));
    }
    public void doMath(Integer a, Integer b){
    printOutput(a, b);
    }

    }

    In Developer Console –> Open Execute Anonymous Window
    ————————————————————————
    MathCalculator mathCalculator = new MathCalculator();
    mathCalculator.printOutput(5,3);

  3. Did some one try it vs code?? I am not sure how we should run the below code.
    MathCalculator mc = new MathCalculator;
    mc.doMath(8,4);
    I am trying it from execute anonymous Apex with currently selected.
    It throws an error unexpected token ‘mc’.

Leave a Reply

Your email address will not be published. Required fields are marked *