Posts

Showing posts from March, 2020

Custom Permission Set Component

Image
This is a custom permission set component that is made in LWC. This component can be used to assign multiple fields and object permissions to multiple permission set at the same time. This is a very helpful component when permission on a field or two needs to be assigned to many permission sets at the same time. This is a complete generic component that is made out of the LWC (lighting web components) in salesforce. This component can be assigned to quick action, to the home page, to a record page and even to the app page. Click here to check the video demonstrating the working of the component,                                          Component Description : This component has 3 sections. Object - The object section contains a dropdown with the list of objects which can be selected. Once an object is selected the fields of the objects that are permissible aut...

Data Type and different Data Types are available in Apex

A data type in a programming language is a set of data with values having predefined characteristics. Examples of data types are: integer, floating point unit number, character, string, and pointer. Usually, a limited number of such data types come built into a language. The language usually specifies the range of values for a given data type, how the values are processed by the computer, and how they are stored. Apex is a strongly typed, object-oriented programming language. Just like any other  programming language, Apex has variety of data types that you can use. Primitive Types - This data types include String, Integer, Long, Double, Decimal, ID, Boolean, Date, Datetime, Time and Blob. All these data type variables are always passed by value in methods.  Another point to note is in Apex, all variables are initialized to null when declared. You must explicitly initialize to non-null values before using. Data Type Description Blob A c...