Thursday, August 23, 2018

How To Enable Custom Domain For SalesForce


Enable Custom Domain For SalesForce ๐Ÿ˜„๐Ÿ˜„

Hi Friends. . .!!!!
How are you ALL......Hope You are doing Great...๐Ÿ‘Œ

๐Ÿ‘‰In This Tutorial, we will learn how to Enable a Custom Domain for a Developer Org, so that we can Use It for Developing Salesforce Lightning Components.

๐Ÿ‘‰Salesforce Custom Domain or Salesforce my Domain must be enabled to use Lightning Components in Salesforce.com.

Custom Domain URL will be like https://MyDomain.my.salesforce.com


In Place of MyDomain, you can Include your own Name or Any Name you wish to include.

๐Ÿ‘‰To Create Custom Domain Follow Below Steps :

1. Click on Setup
2. In the Quick Find Box, Enter My Domain.
3. Click on My Domain.
[or] 
1. You can Directly Navigate to Administer | Domain Management | My Domain.
Select My Domain
2. Enter the Name of your SubDomain after https:// and Check Availability.
Typically, a subdomain is your name of a company, or you can include your own name as long as it's Unique.
If the Name was already taken, choose another name.
3. Click Register Domain.
After clicking on Register, It will take Few Minutes to Complete Registration.
and you will receive a Confirmation Email.
 4. Click on Login to Test Your Domain Registration
 5. Click on Open.
In Step 4, You can Edit your Domain Settings.
Like.., Login Policy : Enabling this Prevent the User from Login with the URL : https://login.salesforce.com.
That's It....
Now you have Enabled Custom Domain to your developer org.
Keep Learning...!!!
Learn Today, Live Tomorrow...!!!!

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.



How To Enable Development Mode In Salesforce

Development Mode In Salesforce

Development mode in salesforce enables developers to embed visualForce page editor in the browser.
Enabling Development mode in Salesforce is very essential for developers to build visualforce pages in the view state.
After enabling we can see both code and preview of the visualforce page in the same window.

How to Enable Development mode in Salesforce

Salesforce development mode can be enabled, Navigate to Name | Personal Advanced User.
In advance user details, we can edit assignments, can create new group's, Create new Queue, and can access Salesforce Login History details like Login Time, Source IP, Login Type, Login URL, Location.
To Enable salesforce development mode click on Edit button.

Now go to User details section and Enable Development Mode check Box.
Click on Save Button.

How to check Salesforce Development Mode Enabled or Not

To check development mode in salesforce, Navigate to Setup | Build | Visualforce Pages.
  • Now Create a new Visualforce page and Quick save the page.
  • Now click on preview button and the result will be opened in new window.
Click and drag the button. Now visualforce page code and result will be displayed.

What is View State in Salesforce

  • ViewState in salesforce holds the stage of the Visualforce page which includes components, field values and controller state.
  • Salesforce developer environment has a view state inspector, which let user to view the content of the view state.
  • Performance of the page depends efficiently managing the view state.