top of page
hand-businesswoman-touching-hand-artificial-intelligence-meaning-technology-connection-go-

Salesforce Developer - A first Step…




A Salesforce developer has experience and an understanding of how Salesforce works. Some of the important tasks that a developer does is Communicating with clients to understand CRM requirements, Designing, building, and implementing custom Salesforce applications, Testing applications, Fixing bugs and Integrating Salesforce with other 3rd party applications.

Some of the tools used for development are Apex, Visual-force, and Salesforce Lightning Component to develop applications.



To work on the development side Go to the Gear Icon right click and select Developer Console.




APEX


Apex is a strongly typed, object-oriented programming language.Apex syntax looks like Java., Apex enables developers to add business logic to most system events, including button clicks, related record updates, and Visualforce pages. Apex code can be initiated by Web service requests and from triggers on objects.


To view the Apex class, Visual Force page or the LWC go to File, click on New.Here we can be able to create the class, Visualforce Page or Lightning components.




APEX TRIGGERS


Apex Triggers are specifically designed to perform a complex series of actions in Salesforce, after and before events, some events like when a record is created, updated, or deleted. It turns out to be effective in data management as well.When a record is updated, the Trigger executes its action before or after it is updated as per the condition set.

Broadly, there are 2 types of Triggers in Salesforce.

  • Before Triggers

  • After Triggers


Before triggers are used to perform a task before a record is inserted or updated or deleted in Salesforce. These are used to update or validate record values before they are saved to the database.


After triggers are used if we want to use the information set by Salesforce system and to make changes in the other records. The records that fire the after trigger are read-only.



VISUAL FORCE PAGE


Visualforce are created using a unique tag-based Mark-up language. It is similar to HTML but it's primary use is to access, display and update the organization’s data

Visualforce pages can be used to define custom tabs, override conventional buttons and tabs in sophisticated page layouts, and construct dashboard components.



Elements in VisualForce

-> Markup for Visualforce: The first component is Visualforce markup. It is made up of apex: prefixed tags, HTML, JavaScript, and other common web development code.

-> Controller for Visualforce: The second type of element in Visualforce pages is the Visualforce controller, is a set of instructions for what happens when a user interacts with components specified in associated Visualforce markup.

Standard Controller consists of the same functionality and logic that is used for a standard Salesforce page. For example, if you use the standard Accounts controller, clicking a Save button in a Visualforce page results in the same behavior as clicking Save on a standard Account edit page.



LIGHTNING COMPONENT


The Lightning Component framework is a UI framework for developing single page applications for mobile and desktop devices. Lightning includes the Lightning Component Framework and some exciting tools for developers. Lightning makes it easier to build responsive applications for any device like desktop, mobile, tablet etc. As per Sprint’19 release we can build lightning components using two programming models.


1. Lightning Aura Component - Aura is a framework for creating components that can be used in any web application.Aura has made it possible for programmers to create apps that are not dependent on Salesforce data, minimizing the inconvenience to regular users during development. Because there aren’t any device-specific optimization requirements, Aura also facilitates effective application development.





The Bundle structure of Aura are

  • Component– A markup language is used for configuring the layout of the component.

  • Controller– A JavaScript Controller is used for handling client-side processing or an apex controller is preferred for server-side processing.

  • Design File– A design file is used for describing the design-time behavior of the component being used in Lightning pages or in Lightning App Builder.

  • Documentation File– A documentation file is used to provide reference documents or sample code to users who have received your component.

  • Helper– A helper aims at storing reusable JavaScript functions that are handled by the controller.

  • SVG File– An SVG File enables you to include custom icons that can be used for reference further.


2. Lightning Web Component - The advanced version of Aura is LWC. Similar to an AURA component, the main contents of a LWC are also html, javascript. There are optional content like css. But then in addition to these for LWC, an xml configuration file is also included which defines the metadata values for the component.


To work on LWC.

Install VS Code and set it up for Salesforce Development. You can also use ForceCode Extension for Salesforce as it supports LWC.




INTEGRATION


Integration is a process of connecting two applications.Salesforce integration is the process of merging the data and functionality of Salesforce with another application to provide users with a single unified experience.



Types of API’s available in salesforce are

REST API

SOAP API

Bulk API

Streaming API

Metadata API

Chatter REST API

User Interface API

Analytics REST API

Apex REST API

Apex SOAP API

Tooling API



60 views0 comments

Recent Posts

See All
bottom of page