Development

Development category related to Salesforce coding. Furthermore, it consists of Apex, Aura Component, and other coding related. In addition, it has a simple example and steps that are easy to follow.

Aura Events

Aura Events Summary This post will cover topics below: Introduction. Example of Application Event. Example of Component Event. Introduction Aura events are a file that contains the attributes. The attributes are defined outside the component. Generally, there are 2 or more components related to each event. There are 2 types of Aura events. The events …

Aura Events Read More »

Connect to Apex

Aura Connect to Apex Summary This post will cover topics below: Introduction Attributes Connect to Salesforce Apex example References Introduction Aura component One of the Salesforce front-end framework. There are several files are created when creating a new  Aura Component. .cmp file – it contains HTML and aura tags. controller – a js file that …

Connect to Apex Read More »

Apex Testing

Apex Testing Summary This post will cover topics below: Test Class Test method Test Data Factory Introduction Apex testing is crucial and mandatory to have in order to deploy  Apex in the Production environment. An overall score of apex testing is 75%, however, as best practices,  aims to have a higher score such as 100%. …

Apex Testing Read More »

SOQL Relationship

Lookup Relationship Summary This post will cover topics below: Summary of the Lookup relationship. Build SOQL relate to Lookup relationship. Lookup relationship name with Chrome extension.  Introduction Lookup Relationship It is a one-to-many relationship between two objects. There are many benefits to add lookup relationship such as allow to build a report that requires two …

SOQL Relationship Read More »

Classes

Classes Summary This post will cover topics below: Definition of the class Definition of the inner class Encapsulation Apex properties Automatic properties Exercises Class definition Class A blueprint to define an object.  Object is an instance of a class that has state (properties) and behavior(actions). Constructor A special method without return type, not even void. …

Classes Read More »

Collections

Collections Summary This post will cover topics below: Introduction Define and Initialise List, Set, and Map. Useful methods for List, Set, and Map. Examples for List, Set, and Map. Exercises Introduction Collections Group of data/records with the same data type. Type of collections There are 3 types of collections in Apex. The types are: List …

Collections Read More »

Methods

Methods Summary This post will cover topics below: Definition of method. Syntax to define method and invoke it. Overload method. Exercises. Definition of a Method Method The Group line of codes to perform an operation. It is able to reuse it at different places by invoke it.  Headings Definition of method Syntax Overload method Exercises …

Methods Read More »