Salesforce Archives | Insurance Software development

Salesforce Script To Fetch Object

Author - Webner
|
12:51 pm
|
0 Comments
| |

Salesforce script to fetch object which contains fields using fields API

When we work with objects in salesforce, sometimes we need a few things dynamically like a list of object names that contain field with a given API name of the field. So, here is a script that gives us all the objects which contain those fields.

String fieldAPI = ‘fieldAPI__c’; // API name of field to be searched
List sObjectList = new List();

//fetching objects which will be used to get field names
for(Schema.SObjectType eachShema : Schema.getGlobalDescribe().Values()){
String objectName = eachShema.getDescribe().getName();

// Exclude all the unwanted sObjects […]

Salesforce Development Best Practices

Author - Webner
|
5:20 am
|
0 Comments
| |

Salesforce Development Best Practice

There are various approaches for developing code in salesforce but there is always one way which is better than others. So here is a list of best practices that should be followed while working in Salesforce.

Apex
1. You can write the code in any format as you want but you should use the capitalization for class names. For example:

public class EmployeeDetails{}

Use Camel case for function and variable names. For example:

String empId = ‘’;
Public function employeeAdd{}

You should keep in mind that the name should be descriptive for anyone who […]

Salesforce Shield Introduction

Author - Webner
|
12:09 pm
|
0 Comments
| |

Salesforce Shield Introduction

Salesforce Shield has been introduced to help users with complex governance and compliance needs. It is basically a set of integrated services built in the Salesforce1 platform.
It lets customers see who is doing what with the sensitive information, know the state and value of their information going back up to 10 years, and cipher the sensitive information.

Nowadays, there are a number of organizations of different industries and different sizes that use Salesforce to run their businesses quicker. Since the usage of the Salesforce platform for significant business capabilities is growing, the […]

Salesforce script to fetch child objects of an object

Author - Webner
|
11:12 am
|
0 Comments
| |

Salesforce script to fetch child objects of an object

When we work with objects in salesforce, sometimes we need a few things dynamically like child objects of an object. So I have created a script that gives us all the child objects of a given object.

String parentObjectName = ‘Account’;
Map<string,string> objectRelationshipMap = new Map<string,string>();
Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
for(String ss1: schemaMap.keyset()){
Schema.SObjectType objToken=schemaMap.get(ss1);
if(ss1.equalsignorecase(parentObjectName)){
//find details about sobject
Schema.DescribeSObjectResult objDescribe=objToken.getdescribe();
List<Schema.ChildRelationship> childRelationshipList […]

Salesforce DX – Introduction

Author - Webner
|
8:48 am
|
0 Comments
| |

Salesforce DX – Introduction

Salesforce DX stands for Salesforce Developer Experience. It is a Salesforce product within the App cloud that helps developers to develop and manage the Salesforce app efficiently.

Salesforce DX proposes a new project structure for the org’s code and configuration. It is mainly used by developers as it permits us to have a true version control. We can store all the code and configuration items in a system called “Version control” (VCS) to bring consistency to the team’s development processes. Version control is an important part of an agile release plan […]

Salesforce | Send email through SendGrid using REST Api

Author - Webner
|
10:19 am
|
0 Comments
| |

How to send an email through SendGrid using REST API in salesforce

For sending the email through Sendgrid, we must have the Sendgrid Account’s Key and this Key will use in the Rest API to send the email.

Some parameters of the Rest API are:

API: The Sendgrid’s API for sending email is – https://api.sendgrid.com/v3/mail/send

Key: The key to the Sendgrid Account is like XX.XXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXX

Here is the example of JSON Request body of the email:

{
“personalizations”: [
{
“to”: [
{
“email”: “test@gmail.com”
}
],
“subject”: “Hello, World […]

Salesforce | Create leads from google form responses

Author - Webner

Problem: How to create leads from google form responses?

We have a google form and we want to create leads from google form responses.

Solution: -To create lead from google form, follow these steps:-
1.Open google Sheet which contains the responses of google form.
2.Click on the Tools tab and then click on the script editor.

3. New Screen opens like this..

Write a code to insert data in the salesforce.

Here is the sample code that inserts leads from the google sheet. In this code, we are using HTML […]

How to Authorize Salesforce users to access Sharepoint Site’s Data

Author - Webner
|
1:09 pm
|
0 Comments
| |

Authorizing the Salesforce users to access Sharepoint Site’s Data

While integrating the Salesforce Org with the Sharepoint Site for accessing/viewing the Sharepoint Files in Salesforce Org, even after authenticating the Salesforce user to Sharepoint Site when a user tries to access the Sharepoint Files at Salesforce end, then the following ERROR occurs:

You are not authorized to perform that operation.”

Here are the steps which have to be followed in order to resolve this Issue (Or to authorize user at Sharepoint end):

1.Login to “Office 365” and go to the Site […]

Salesforce Security Review Introduction

Author - Webner
|
1:29 pm
|
0 Comments
| |

Salesforce Security Review

When we are creating any application to be published on the AppExchange, the role of the application security becomes indispensable. A Salesforce security expert looks at the application’s source code before an application is published. Additionally, they also check the external integrations to ensure proper security standards are followed. This is referred to as a security review. Once the application clears the security review test with zero security findings, only then it can be released onto the AppExchange. The security review also equips the partners and developers to meet the enterprise security […]

Add a Visualforce page to the homepage Salesforce Lightning

Author - Webner
|
12:40 pm
|
0 Comments
| |

Steps to add a Visualforce page to the homepage in salesforce lightning
1.) Go to setup and search Lightning app builder.

2.) Click New.

3.) Create a new lightning page model appears. Select home page from the list on the left and click Next.

4.) Write the name for the label and click Next.

5.) On the next page, select Clone Salesforce Default page or create a new page.
Note:- If you select Clone Salesforce Default page then it will include all the default components from Default page. But, a new page will not contain any components.

6.) Click Finish […]

Great British Discounts

Author - Webner
|
8:41 am
|
0 Comments
| |

Webner has been involved in the development of another highly successful platform – Great British Discounts , Click to view. Owned and promoted by L-EV8 Marketing, Great British Discounts is the go to site for those who want to avail the best deals in life. Great British Discounts is the choice of everyone because you get deals on all you need including but not limited to Baby products, Clothing, Footwear, Electronics, Jewellery, Travel, Hotels, Home, Garden, Food, Sports, Leisure, Health, Beauty, Finance, Insurance, Entertainment and Motoring.

Technically Great British Discounts is highly secure as it supports hundreds of payments everyday, hence […]

ACORD Forms autofill

Author - Webner

We get this request from a lot of clients in US insurance industry who want to generate ACORD forms automatically, means they want data of corresponding insurance Policy and other objects filled automatically in the editable ACORD PDF. Most of the clients have their data in a CRM system like Salesforce, and some clients have this data in a database. What users ideally want is to select an ACORD form number and click a button corresponding to a Policy, Vehicle, Account or some other related object, which should trigger the code that retrieves the data to fill and auto populates […]

Website security
Contact Us