Salesforce Archives - Page 3 of 26

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…

‘System.LimitException: Too many query rows: 50001’ error in Salesforce

Author - Webner
|
0 Comments
|

As we know, Apex runs in a multitenant environment so to restrict the runaway apex code/processes to acquire shared resources, the Apex runtime engine strictly enforces these governor limits. These governor limits count for each Apex transaction. For each execution of a batch, these limits are reset in its Read more…

Delete and deploy components from production using workbench

Author - Webner
|
0 Comments
|

How to delete and deploy components (Apex classes, Flows, Objects, etc) from production using workbench?

We cannot delete Apex classes directly from the Production org. Also, it is not possible to deploy deleted apex classes using Changeset. So, to delete them we can use these tools – Workbench, IDE Read more…

Why Salesforce Customization is becoming common among businesses?

Author - Jashandeep Singh
|
0 Comments
|

Salesforce CRM

CRMs have become quite basic in almost all businesses in order to achieve business goals, manage client relationships, generate leads, enhance sales pipeline and get a competitive edge. Salesforce is a well-known CRM among many others which is being used by many kinds of businesses Read more…

Mobile App Development at Salesforce

Author - Jashandeep Singh
|
0 Comments
|

The Internet is considered to be one of the most effective channels of business communication in the field of Marketing, Supply Chain Management, Sales or Web Technologies. Due to this, web technology is involved in almost every small, medium or large business. But there exists another channel that takes more Read more…

Visual Code to AzureDevops | Visual Code to Salesforce

Author - Neha Mishra
|
0 Comments
|

Visual Code to AzureDevops | Visual Code to Salesforce

Steps to connect local project from VS Code to Azure DevOps:

1. Install Visual Code.

2. Install all the salesforce extensions.

3. Install Git on your system.

4. Go to your Azure account.

5. Select the Read more…

Dynamically applying specific Layout to a record on VF page in Salesforce

Author - Umang Pasricha

Dynamically applying specific Layout to a record on VF page in Salesforce

You may need a specific layout to show in a tab for a particular record (like account settings). For this, we can fetch ‘Metadata’ field from Field Definition with SOQL using Tooling API. In Read more…

Salesforce SOAP and Bulk API Integration in PHP

Author - Ashish Gautam

Implementing Salesforce SOAP and Bulk API Integration in PHP

Salesforce SOAP API:
Salesforce SOAP API is a coding method to use our Org’s information with the help of inbuilt functions and SOQL query. With the help of these function, we can access or Read more…

Salesforce – How to do it right

Author - Varun Chopra

Salesforce – How to do it right

Moving on from managing your customer relationships in a worksheet and deciding to do that in a CRM system like Salesforce is a big step forward. If you have already taken that step and you are a Salesforce customer, congratulations Read more…

Error:Lightning components request My Domain

Author - Varun Chopra
|
0 Comments
|

Handling Error : Lightning components

I had created a lightning application but while running it I was getting this error:

Error :  Lightning components request My Domain. Please contact your System Administrator for more information.

Solution:  To use Lightning application and resolve the above Read more…

Error : “Bad value for restricted picklist field while creating records”

Author - Neha Mishra
|
0 Comments
|

In salesforce, a picklist can be dependent on a global picklist value set or it may be defined manually while creating field.

Above error occurs when we try to create a record along with a value set for the picklist. There can be two reasons for this :

The picklist is Read more…

Salesforce | Missing organization feature : StateCountryPicklist not present

Author - Neha Mishra
|
0 Comments
|

Missing organization feature: StateCountryPicklist not present

Task to perform : I was trying to upload a package in a fresh salesforce org. When I tried to deploy it, it threw an exception “Missing organization feature : StateCountryPicklist not present”.

Read more…

Salesforce | Create leads from google form responses

Author - Varun Chopra
|
4 Comments
|

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

Limits for Standard and Custom Salesforce Objects Usage Per Org

Author - Navdeep Kaur
|
0 Comments
|

Limits for Standard and Custom Salesforce Objects Usage Per Org

In salesforce we deal with two types of Objects –
– Standard Object and
– Custom Object

And each of these has its own limits on using its fields and other associated elements.

Limit on number of Read more…

Salesforce Chatter introduction, uses and customization

Author - Anjana Devi
|
0 Comments
|

Salesforce Chatter introduction, uses and customization

Chatter: A Chatter is a an application of Salesforce that helps the users to work together, talk to each others and motivates them to work efficiently across the organization. Each user has a profile page Read more…

Lookup Vs Master-Detail Relationship

Author - Webner
|
0 Comments
|

Lookup Vs Master-Detail Relationship

There comes a moment when we are confused about whether to create a lookup relationship or a master-detail relationship between two objects (can be a Standard or a Custom object).
Below are some use cases for the aforementioned relationships.

Read more…

Jquery | DataTables warning: table id – Cannot reinitialise DataTable

Author - Webner
|
2 Comments
|

If you try to set properties of Jquery datatable 2 times as below, it will give an error:

table = $(‘#product-data-table’).DataTable({stateSave: true}) ;

table = $(‘#product-data-table’).DataTable
({“aoColumns”:
[
{
“bSortable”: false },null,null,null
] });

“DataTables warning: table id=product-data-table – Cannot reinitialise DataTable”.

DataTables does not allow Read more…

View State Problem in Salesforce

Author - Navdeep Kaur
|
0 Comments
|

View State in Salesforce

It is a state that holds tags, field values and all component of controller except transient type. The maximum size limit of visualforce page is 132KB. If the size increase it results in View state problem.

How to enable View State for Read more…

How to restrict multiple attachments on a Salesforce Custom object

Author - Neha Mishra
|
0 Comments
|

Restrict a user to create multiple attachments on a specific custom object.

To accomplish this, as it is not possible to create a process builder or workflow on Notes & Attachments object, neither we have a privilege to view attachment object inside Salesforce, so creating a trigger Read more…

Safari downloading files in .csv.html format | Workaround

Author - Webner

Problem

In one of the software we are developing, we faced a strange problem in Safari browser on Mac machine. A link on webpage was provided to download a file in .CSV format (server side code written in CakePHP). In Safari, downloaded file was being given the extension Read more…