Davide Gammone
How to fix the "Duplicate id in list" error in Salesforce
In Apex code, Lists can hold duplicate values but, if it contains duplicate sObject IDs and you try to update or delete, you'll get the error :...

Salesforce Spring '21 Release Top Development Features
Salesforce Spring '21 is bringing many features that can be very useful. In this post I will show some of my favorite features for Developers. You can...

How to filter query results using the length of a field in Salesforce
In Salesforce, with the SOQL language (Salesforce Object Query Language) is possible to run queries, in order to extract some data from the Salesforce...

How to disable the cache in Salesforce Lightning Component
Salesforce help the runtime performance by caching components in the client. This is positive for the end users because page loads are fast. But is not...

How to color columns of Data Table in Lightning Web Component
In a Salesforce Lightning Web Component, you can assign a CSS class to each of the cells of the Lightning Data Table. You can use the "cellAttributes"...

How to resolve the Too Many DML statements: 1 error in Salesforce
When you write and test your code in Salesforce, did you ever get the "Too Many DML Statements: 1" error? Usually the error occurs with: Lightning...

What is Trailblazer.me?
Introducing Salesforce Trailblazer.me! Your reinvented resume and unified profile is now live! What is Trailblazer.me?

How to fix the UNABLE_TO_LOCK_ROW error in Salesforce
When a record is being updated or created, Salesforce place a lock on that record to prevent another operation from updating the record at the same time...

How to migrate to Salesforce Lightning Experience?
With the Salesforce Spring '19 release notes we learnt that from October 2019, Lightning will be turned on for all Orgs. This will be listed under the...

Salesforce Innovation Day in Napoli
This morning (thursday, march 28, 2019) I had the pleasure and honor to participate in the first Salesforce Innovation Day of Naples, framed by the...

How to create a Map in Salesforce with Keys = Fields Name and Values​ = Query Result
A Map is a collection of Key-Value pairs where each unique key maps to a single value. Keys and values can be any data type—primitive types, collections,...

How to convert Salesforce ID from 15 to 18 chars
Salesforce record ID's have 2 forms: 15 chars case sensitive, and 18 chars case insensitive. It's very important that we always use 18 chars ID for all...

How to drop all indexes on an Oracle SQL table
Long time ago I needed to delete all indexes on an Oracle SQL table. After some test I ended up with the following PL/SQL code:

This site uses cookies, including third-party requests, to offer you services in line with your preferences. By closing this banner, scrolling this page or clicking any element, you consent to the use of cookies. If you want to learn more or opt out of all or some cookies, click here