Webner Blogs - eLearning, Salesforce, Web Development & More - Page 5 of 68

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…

Dependency Injection in C Sharp

Author - Webner
|
0 Comments
|

To understand the term Dependency Injection, we must know what is Dependency and IoC?
In terms of Object-Oriented Programming, Suppose Class A uses Class B for one of its jobs. Here Class B is a dependency of Class A and Class A is dependent 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…

How to run command prompt from visual studio

Author - Webner
|
0 Comments
|

Command prompt can be called from the visual studio. Commands that are used to run it from the visual studio are listed below:

Step 1: Firstly we will create an object for processstartinfo like this-
ProcessStartInfo pro = new ProcessStartInfo();

Step 2: Then file name needs to Read more…

Introduction to DevOps Architecture

Author - Webner
|
0 Comments
|

In Software Engineering, Operations and Development both play crucial roles in order to deliver the results of an application. The development consists of analyzing the requirements, designing, developing, and thereafter testing the software components in the testing environment. On the other hand, the operation consists of administrative processes, services, and 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…

Laravel Relationships in Eloquent

Author - Webner
|
0 Comments
|

Laravel relationship tables are frequently associated with each other in the database. Laravel relationships in eloquent support different types of relationships and it’s easily working and managing data.

Defining relationships:-

One to One
One to Many
Many to Many
Has Many Through
Polymorphic Relations
Many to Many Read more…

Javascript Array Methods One Must Know

Author - Webner
|
0 Comments
|

filter

The filter is an array function in vanilla.js which returns a new array by filtering the filter item provided to the filter function.

Here is ES6 syntax for this function:

Reduce

This function basically executes a given function provided to it. It 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…

How to get Salesforce Custom Field Ids in Apex

Author - Webner
|
0 Comments
|

We can get the Ids of Salesforce Object’s custom fields in the Apex code using Tooling API. Following is the example code for the same:

String objectDevName = ‘ObjectName’;
ToolingAPI toolingAPI = new ToolingAPI();
List objectData = (List)toolingAPI.query(‘Select Id From CustomObject Where DeveloperName = \” + objectDevName + ‘\”).records;
Map customFieldIds = new Map Read more…

How To Reset Your MariaDB-10.2 Root Password on Ubuntu 20.04

Author - Webner
|
0 Comments
|

Note: This tutorial will work only for resetting the MariaDB root password, not for the MySQL server.

Introduction

If you forget the root password of the MariaDB database in Ubuntu, you can still regain the access and reset it if you have access to the server Read more…

How to create a Salesforce Scratch Org

Author - Webner
|
0 Comments
|

Scratch org is a disposable and source-driven deployment of Salesforce metadata and code which is made for developers (developing specific modules) and for automation that is continuous integration or continuous development. Scratch org is a configurable org/sandbox which allows the developers to emulate different Salesforce editions with different Read more…

OAuth 2.0 Authorization Code Grant Type

Author - Webner
|
0 Comments
|

The Authorization Code Grant Type is perhaps the foremost common of the OAuth 2.0 grant types that you’ll encounter. Both web apps and native apps can use it to get the access token after a user authorizes the app.

What is OAuth?

It is not a Read more…

How to exclude source when Syncing or Converting – DX

Author - Webner
|
0 Comments
|

While Syncing the metadata files between your local system and a target/Scratch org, you often want to exclude some of the source files. Similarly, you often have files to exclude when converting the source to the Salesforce DX project format. In both the above-said cases, you can exclude Read more…

How to Apply custom pagination using devextreme

Author - Webner
|
0 Comments
|

The devextreme already provides pagination features as we can see in the above image.
If we want to go directly to page 155, we can go to that specific page by clicking on the page to page. This is a time-consuming process. We have no option to go to Read more…

How “this” is used in callback function in javascript

Author - Webner
|
0 Comments
|

The “this” keyword of JavaScript causes confusion for people, who start to use Javascript language and mainly for those who start after using the other languages. Here the main question is how to use “this” in the right way in a callback function.

Lets the following example:

function Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 ... 68 Next page ›