Cloud 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 deploy the LWC component on a Local Development Server

Author - Webner
|
0 Comments
|

You can deploy your LWC component on a local development server. Once you deploy your component on a local server, then you do not need to deploy again and again to see the output. You just need to save your code in VS code and then the updated output will Read more…

If you forgot the Administrator password for widnows EC2 machine

Author - Webner
|
0 Comments
|

Problem: If you forgot the Windows EC2 machine Administrator password other than the default auto generated password provided by AWS after using the key pair while launching the EC2 machine, and still you can’t access the EC2 windows machine with default auto generated password then follow the Read more…

The RefreshApex Method and its implementation in the Lightning Web Component

Author - Webner
|
0 Comments
|

The refreshApex() function is used when we want to refresh the page data in lightning web components. We can update the wire function or parameter data using refreshApex (), and then component values will be rendered. Refresh apex works only when you pass the complete response as the argument.

Syntax Read more…

Remove the Logged in account from Microsoft Teams

Author - Webner
|
0 Comments
|

Sometimes we do not want to save our profile on any account on some particular machines for security reasons. By default, the Microsoft Teams app saves the login credentials when we first log in, so next time it will not ask you to enter the password if you are already Read more…

How to Retrieve Metadata of AWS EC2 Machine

Author - Webner
|
0 Comments
|

Metadata is data about your EC2 instance that is used to manage and configure the instance. Developers use the metadata in the script in order to configure the instances and their resources.

Please login to your EC2 machine and run the following command:

# curl http://169.254.169.254/latest 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…

How to get list of all changes with files name in a Azure Branch

Author - Webner
|
0 Comments
|

When we work with Source Control systems and work in a developer branch that is created from the main/master branch. Sometimes, there is a case when we have pushed multiple times in a branch but we need to check the overall changed files in that particular Azure branch. So 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…

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…

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…

Difference Between Aura Components and LWC

Author - Webner
|
0 Comments
|

Four separate technologies are used together for web components in Salesforce:

Custom Elements: JavaScript APIs help to develop the HTML elements with custom templates, tag names like and behaviours.
Shadow DOM: For isolation of CSS and JavaScript living Standard DOM specification has the definitions of this.
HTML templates 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…

Keyring Password Issue

Author - Webner
|
0 Comments
|

Use this if you have forgotten the password of the keyring in Ubuntu, but you want to safeguard a new keyring with a password.

For Ubuntu 18.04, I used the following.
Remove old keyring: For this, we need to change the directory to keyring location Read more…

Upload Image to AWS S3 Using React

Author - Webner
|
0 Comments
|

React provides you a facility to upload files directly from your react end to AWS S3. To achieve it, you need to install a package that is listed below:

npm install –save react-s3

After that, add the following import line to your js file at the top:

import S3FileUpload Read more…

AWS Step Functions

Author - Webner
|
0 Comments
|

What are AWS Step Functions?

Step Functions is a serverless orchestration service that lets you combine AWS Lambda functions and other AWS services to build business-critical applications. Through Step Functions’ graphical console, you see your application’s workflow as a series of event-driven steps.

Workflow build 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…

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 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…