Thursday, August 23, 2018

How To Use SalesForce Developer Console

Developer Console

Salesforce developer console is a browser based developing environment.

Developer Console is used to Create, Test, and debug the Application in Salesforce. Using Developer Console, we can Execute SOQL & SOSL queries.

Tools & Features in Salesforce Developer Console

Salesforce developer console has a menu bar, Workspace and Logs Tab which contain several items like logs, Tests, Checkpoints,  Query Editor, Progress and Problem.
In Menu bar contains File, Edit, Debug, Workspace and Help.
File Menu : we can create new Apex class, Apex Trigger, visualForce Page, visualForce Component, Static Resourse, Lightning Application, Lightning Component, Lightning Interface, Lightning Event, Lightning Tokens.

Edit Menu : Using edit menu, we Find text in the current view, Find/Replace, Find/Replace All, Search in Files, Fix Indentation.

Debug Tab : we can open new window to enter apex code for testing using Execute anonymous windows and can execute last Apex Code.

Workspace : workspace in developer console is a collection of resources represented by tabs in the main panel.
Here we can create new workspace, switch to Existing Workspace, Rename Current Workspace and Delete workspaces.

Help : Help contain list of Shortcut keys and preferences settings.

Open Developer Console :

To open developer console, Navigate to Name | Developer Console.
Click on Developer Console.
Now we can create Apex Classes, visualForce pages, Apex Triggers, Lightning Components and many more.

Let us Explain in brief how to navigate developer console for creating Apex Classes, Triggers, VF Pages, Lightning Components etc.

Creating Apex Class in Developer Console

To create new Apex Class in Salesforce developer console navigate to 
Click on File | New | Apex Class.
Now in workspace enter apex code and Save the code

Creating Apex Trigger in Developer Console

To create new Apex Trigger in Salesforce developer console navigate to
Click on File | New | Apex Trigger.
Now in workspace enter apex Trigger code and Save the code

Creating VisualForce Page in Developer Console

To create new Visualforce Page in Salesforce developer console navigate to
Click on File | New | visualForce Page
Now in workspace enter Visualforce Page code and Save the code
To Execute Visualforce code click on preview button and a new window with visualForce page result will be open

Creating Visualforce Component in Developer Console

To create new Visualforce Component in Salesforce developer console navigate to
Click on File | New | Visualforce Component
Now in workspace enter Visualforce Page code and Save the code
To Execute Visualforce code click on preview button and a new window with visualForce page result will be open

Creating Static Resource in Developer Console

To create new Static Resource in Salesforce developer console navigate to
Click on File | New | Static Resource

Creating Lightning Application in Developer Console

To create new Lightning Application in Salesforce developer console navigate to
Click on File | New | Lightning Application

Creating Lightning Component in Developer Console

To create new Lightning Component in Salesforce developer console navigate to
Click on File | New | Lightning Component

Creating Lightning Interface in Developer Console

To create new Lightniing Interface in Salesforce developer console navigate to
Click on File | New | Lightning Interface

Creating Lightning Event in Developer Console

To create new Lightning Event in Salesforce developer console navigate to
Click on File | New | Lightning Event

Creating Lightning Token in Developer Console

To create new Lightning Token in Salesforce developer console navigate to
Click on File | New | Lightning Token

How to Execute SOQL Query in Salesforce Developer Console

To execute SOQL and SOSL queries in Salesforce developer console click on Query Editor Tab
A New workspace will be displayed to enter SOQL query.
Enter SOQL Query
Click on execute button.




EmoticonEmoticon