Conditional Numbering in Salesforce

Auto number field in Salesforce assigns the number sequentially. That means auto number is assigned in series as records are created. For ex: Account records might be assigned Acc-001, Acc-002 and so on. What if we want to use conditional numbering that is separate series based on a field value. For ex: All tasks related […]

Delete Apex Class from Salesforce using workbench

Many times we wish to deactivate or delete Apex class from Salesforce. While I have always relied on Eclipse for this, I came across this method using workbench. For those, who would rather not download the heavy Eclipse and go all the way to install force.com plugin. Let’s say I have a trigger called ‘UpdateAmount’ […]

Overriding Standard Lead Conversion in Salesforce

Sometimes, the lead conversion in Salesforce does not match with our process flow.  In that case it is necessary to override Standard Lead Conversion with our customized functionality. Lead conversion in Apex can be handled using ConvertLead() method. How to override standard button in Salesforce 1. Go to Object Manager -> Select Lead ->Buttons, Links, […]

Get Geo location from Google API in Salesforce

To get Geo-location from google API in Salesforce, I did a small integration with Google Geocode API. To call Google API, we need the API key. Follow the steps in this article to get the key. Steps to get the latitude and longitude from Google Geolocation Create an Apex trigger with below code. The trigger […]

Scroll to top