Salesforce Archives - Page 2 of 26

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…

Salesforce | Decorators in LWC

Author - Webner
|
0 Comments
|

There are three decorators in lightning web components. These decorators add functionality to property or function.

@api: To expose a public property, decorate this with @api. Public properties are reactive which means changes to the value of a reactive property will re-render the component and all the Read more…

Get records from a related object in Lightning Web Component

Author - Webner
|
0 Comments
|

Problem: Suppose we have an object with a lookup field and we want to fetch a record with related object data in Lightning Web Component.

Solution: We can get a record of the object directly in the LWC JS code. We can do it by using Read more…

Test Class In Salesforce

Author - Webner
|
0 Comments
|

Test Class is an important part of the salesforce. Test Class is a class where we test our written working code that means the code is working right or not. In the Test Classes, we made the dummy data by which we check if the code is covered or not Read more…

How to get Attachments from Salesforce using API in C#

Author - Webner
|
0 Comments
|

Description: The code below shows how we can get Salesforce attachments from various objects and save them to a particular folder on a local disk. This is the complete code to get all attachments saved in all Contact objects in Salesforce.

string _baseFolderPath = “C:\Users\username\Desktop\SFAttachments Read more…

How to Create and Add a Lightning Web Component into the Lightning App in your Salesforce Scratch org

Author - Webner
|
0 Comments
|

After assuming that the user already has the VS Code and all the necessary packages like Salesforce CLI installed and has created a scratch Org into the system, let’s begin the process to create and add a lightning web component into our org’s Homepage and App.

To Read more…

Salesforce | Lightning Web component Lifecycle hooks

Author - Webner
|
0 Comments
|

Lightning Web component Lifecycle Hooks:

These are the callback methods that execute at a specific phase of the Lightning Web component’s lifecycle. There are various types of lifecycle hooks:

constructor(): This method executes whenever the web component is initialized. The flow of execution is from Read more…