Salesforce Archives

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…

Features of lightning:recordEditform, force:recordData, lightning:recordViewform in Salesforce Lightning

Author - Webner
|
0 Comments
|

In salesforce lightning, sometimes we need to create, edit and save the records in the component. This is the time 3 types of components come into mind that arṣe recordEditform, RecordViewfrom, and recordData. We always get confused about which one to use.
The functionality of these components is basically Read more…

Salesforce | UI Record API in LWC

Author - Webner
|
0 Comments
|

UI Record API is used for fetching, creating, updating and deleting the particular record without using the SalesForce Apex Class. These APIs are:

Get Record
Get Field Value
Create Record
Update Record
Delete Record

Below is the sample code of the js controller of LWC for getting the particular record Read more…

Salesforce | LDS Create Record – Record Form and Record Edit Form

Author - Webner
|
0 Comments
|

LDS – Lightning Data Service is used to perform operations on data and access metadata in Salesforce. With LDS, we can view, create new records, and edit records without server calls (Apex methods). Whenever we want to work with Salesforce data, we use LDS as it requires simple and Read more…

OAuth 2.0 Authorization Code Grant Type Using Salesforce

Author - Webner
|
0 Comments
|

As I mentioned in my previous post what is Oauth 2.0 authorization code grant type.

To implement this authorization in Salesforce we have to perform the following steps”

Implement apex code to send first request
String client_id = ‘*******************’;
String client_Secret = ‘************’;
Blob headerValue = Blob.valueOf(client_id + ‘:’ + client_Secret);
Http http = new Http Read more…

Handling Dynamic fields in Salesforce using Selenium

Author - Webner
|
0 Comments
|

Selenium is an open-source (free) automated testing framework for validating web-based applications across various browsers and platforms. Selenium Test Scripts can be written in a variety of programming languages, including Java, C#, Python, etc.

Authorizing OTP Verification using selenium:

Before heading towards automating the salesforce processes Read more…

Creating custom object in Salesforce

Author - Webner
|
0 Comments
|

Log in to your Salesforce account.

Click Setup at the upper-right corner.
Under the Build section in Salesforce, click Create and select Objects or you can search objects on the search bar

To create a custom object, click New Custom Object.

Enter the name of Read more…

Download S3 bucket file from Salesforce

Author - Webner
|
0 Comments
|

When we are working with Salesforce and s3, sometimes we need to download a file from the s3 bucket without using an HTTP request. We can achieve this by generating URLs from apex code. This is a signed URL to access any file of the bucket.
awsKey = ’*******’; // S3 bucket key Read more…

Introduction to Salesforce Sites

Author - Webner
|
0 Comments
|

Salesforce Sites enables you to form public websites and applications that are directly integrated into your Salesforce organization—without requiring users to log in with a username and password. You can publicly expose any information stored in your organization through a branded URL of your choice, and make the site Read more…

Salesforce | Iterate list in LWC

Author - Webner
|
0 Comments
|

In LWC, we have two ways to display the list of records in our web component

for:each:

for:item=”currentItem”: This is used to access the current item.
for:index=”index”: used for accessing the current item’s index.
key={uniqueId}:Read more…

Org Browser on VS Code in Salesforce

Author - Webner
|
0 Comments
|

The Org Browser helps us to view all the available metadata types and their relating components in your default org. With the help of this feature, we can retrieve the metadata source easily without using a manifest file. The non-scratch org such as sandboxes or dev orgs do not Read more…

About Salesforce Queues

Author - Webner
|
0 Comments
|

The collection of records without any owner are the Salesforce Queues. Only the users having permissions to the queue can examine every record of it and can claim ownership of any of them. Queues are basically used to assign/distribute/prioritize the records to teams who share workloads. Traditionally, these Read more…

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