Webner Blogs - eLearning, Salesforce, Web Development & More - Page 3 of 67

Deploying a React App on Linux based Server

Author - Webner
|
0 Comments
|

Step 1. Creating a React App

Install Create React App with the following command:

npm install -g create-react-app

Run this command to create a new app called my-reactapp:

npx create-react-app my-reactapp

Step 2. Reconfigure package.json.

Go to the specified 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…

CSV file upload in Moodle/Totara

Author - Webner
|
0 Comments
|

Step 1: Firstly, create a form using forms API. Create a class that will extend the “moodleform” class defined in “../lib/formslib.php”. Then override the definition() function of this class to include your form elements.

Step 2: To browse the CSV file, use the file 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…

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…

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…

How to upload a file on AWS S3 from Cakephp 3.9

Author - Webner
|
0 Comments
|

First, we need to install aws-sdk for PHP in the CakePHP project. To install it we can run the below command:

composer require aws/aws-sdk-php

Code to upload a file:

Template Code:
<?= $this->Form->create($product, [‘enctype’ => ‘multipart/form-data’]) ?>
<fieldset 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…

ML.NET 1.4 (Machine Learning Framework) Overview

Author - Webner
|
0 Comments
|

ML.NET is a cross-platform and open-source machine learning framework that consists of CLI (Command-Line Interface) and Model Builder (which is a simple UI tool ) to make it easy to build custom ML models using Automated Machine Learning (AutoML).

Using ML.NET, developers can integrate ML.NET 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…

Rename package name in React-native

Author - Webner
|
0 Comments
|

In react-native, To create a new application we use the following command:
react-native init MyApp

This command will create a package name with com.myapp. Sometimes, if your application is created with the wrong package name or bundle id or you want to release your existing application with Read more…

Installing and using Pyinstaller

Author - Webner
|
0 Comments
|

You can install it through pip using this command:
Pip install pyinstaller
Usage:
pyinstaller path_to_your_script.py

PyInstaller reads your Python program, analyzes all the imports it makes, and binds copies of those to the program. The user can launch the integrated application without having to install a Python interpreter or Read more…

How to customize Page size selector using Devextreme DataGrid

Author - Webner
|
0 Comments
|

Pagination is the default feature of Devextreme. The pagination divides your lots of records into pages and you can show numbers of records on a single page.
Under pagination, Devextreme provides lots of features. As we can see in the following image

In this article, we will cover how to Read more…

Increase React Native App Performance

Author - Webner
|
0 Comments
|

React Native apps have numerous benefits like they are fast, cost-efficient, and offer a nearly native look. But, when it is not done properly, it can lead to performance issues.
So, while making you react to native applications, developers need to be aware of the most common performance issues 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…

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…