Salesforce Archives

What is National Producer Number?

Author - Webner
|
0 Comments
|

National Producer Number or NPN is a type of identifier assigned to individuals or businesses. Nowadays, It has taken place of the license number. NPN is issued or assigned specially to “insurance-related organizations or activities” to keep the track of individuals and businesses on a national basis.
It is Read more…

How to login to salesforce using session id?

Author - Webner
|
0 Comments
|

We may also access Salesforce without having to enter a username and password. We may log into Salesforce using the session ID.

To log in to salesforce using session-id follow the following steps:

Step 1: execute this piece of code in the “Anonymous window” of Read more…

Inheritance in Apex

Author - Webner
|
0 Comments
|

Inheritance is a feature of OOPS that allows us to inherit the properties or methods of a class. The base class acts as a parent, the class that is inheriting is called the child class. The child class has access to public and protected methods or variables. Just like every Read more…

Decorators in Lightning Web Component

Author - Webner
|
0 Comments
|

The Lightning Web Component has three decorators.

@api
@track
@wire

@api: If we want to pass any variable from Parent component to child component then we use @api decorator. To pass data to the child component, we need to define a variable with @api decorator in the child Read more…

Custom font in Visualforce Page

Author - Webner
|
0 Comments
|

We can use custom fonts in the Visualforce page using Salesforce Static Resources. Following are the steps to use custom fonts:

In Setup, use the Quick Find box to find Static Resources and create new a resource with ZIP of the font file as given below:

Create a css file Read more…

Bulk State Transition

Author - Webner
|
0 Comments
|

The Bulk State Design pattern is the general pattern that executes the bulk of the actions in Apex based on the change of state of one or more records. Bulk transitions increase the code reusability by allowing only records that fulfill the requirements to be processed.

Design Patterns for Read more…

What is Schema in Salesforce?

Author - Webner
|
0 Comments
|

Schema is a namespace provided by salesforce which provides schema metadata information using different methods and classes.

ChildRelationship Class
This class contains methods to access the child relationship as well as the child sObject for a parent sObject.
DataCategory Class
This class represents the categories within Read more…

Create Component In LWC and display in salesforce page

Author - Webner
|
0 Comments
|

Following are the steps to create component in LWC and display in salesforce page:

Create Default Search org from VS code.

Authorize an Org.

Create Lightning web component.

After creating the lightning web component it will show the component under the LWC folder as shown in the image Read more…

Call Apex Function inside an LWC Function

Author - Webner
|
0 Comments
|

While creating the LWC component whenever you want to call an apex function you use the @wire function in it and pass parameter in it which has @track or @api decorator attached with it like @track id; or @api id; and whenever there is any change in the parameter the Read more…

Salesforce DX – Spinning Up a new scratch org

Author - Webner
|
0 Comments
|

Steps to create scratch org in Salesforce DX

Open the directory folder where the Salesforce DX code is present.
Create scratch org with the help of a command palette or Terminal by authorizing dev hub.
To Authorize dev hub Press Ctrl+shift+P and type (Authorize a Read more…

How to use Custom Labels in Lightning Web Components

Author - Webner
|
0 Comments
|

Custom Labels are text values that can be translated into any language that salesforce supports. We can use custom labels to represent help text or error messages to the users in their native language. Custom labels can be fetched from apex class, visualforce pages, aura components, and LWC (Lightning Web Read more…

Using Developer Console in Salesforce

Author - Webner
|
0 Comments
|

Executing Apex code in the developer console

Login to Salesforce and switch to classic and click Developer Console

Click to debug -> and click “Open Execute Anonymous Window” or Ctrl/E

Write code in the window and execute as following

After executing the code log Read more…

Salesforce | Lightning Navigations in LWC

Author - Webner
|
0 Comments
|

Lightning Navigations are used to generate a URL or navigate to a page reference. With lightning navigation, we can navigate to Pages, Records, Lists, Webpages, Custom tabs, Reports, etc.

There are the steps to use the navigation in LWC:

Step 1: import { NavigationMixin } from ‘lightning/navigation Read more…

Displaying the records from multiple related Salesforce Objects on a Lightning Web Component.

Author - Webner
|
0 Comments
|

The records from a single Salesforce Object can simply be displayed in a Lightning Web Component by using the lightning datatable, but in order to display the records from multiple objects on the same Lightning Page, we need to use the Wrapper Class Read more…

How to Pass Data From one Component to another Component in Lightning Using Events

Author - Webner
|
0 Comments
|

We can send data from One Lightning Component to Another Lightning Component using Events. We can use Application Events to send data from one Lightning Component to another.

We have to follow 4 steps to send data from one component to another component.

Create Event
Register Event
Fire Read more…

Passing Data From One Lightning Web Component to Another Lightning Web Component

Author - Webner
|
0 Comments
|

Sometimes there is a requirement to pass data from one LWC to another which are not in the same DOM tree i.e they are not linked to each other so for that earlier we used to use the pubsub library but now Salesforce has come up with ‘Lightning Message Read more…

Date Time format in CSV to upload on Salesforce

Author - Webner
|
0 Comments
|

While uploading CSV to create records in Salesforce using workbench. Sometimes we need to upload date-time fields. I have used many formats which were suggested in the Salesforce documentation but none of them works for me. The only format for date-time which works is
YYYY-MM-DDTHH:MM Read more…

Batch Class

Author - Webner
|
0 Comments
|

Batch class in salesforce is used to run large jobs (think thousands or millions of records!) that would exceed normal processing limits. Using Batch Apex, you can process records asynchronously in batches (hence the name, “Batch Apex”) to stay within platform limits Read more…

Add Custom Components to Home Page

Author - Webner
|
0 Comments
|

Log in to your Salesforce account.
Click Setup at the upper-right corner.
Under the Build Section Customize => Home, click Home Page Components or you can search for components on the search bar.

After Clicking Home page Components the following Read more…

Salesforce Org Browser

Author - Webner
|
0 Comments
|

The Org Browser makes it easier to retrieve metadata sources by displaying the available metadata types and their corresponding components in the default org. We can easily retrieve metadata sources, without having to use a manifest file. The Org Browser is available only in non-scratch org such as sandboxes Read more…

1 2 3 4 5 6 ... 26 Next page ›