Are you concerned about exposing the URL to an external system for integration and wish not to do so? Are you worried about sharing the Username / Password to connect to an external system and how to hide it? Then Named Credentials is the way to go and you are at right place to learn …
Named Credentials – Code | Apex Callout
Are you concerned about exposing the URL to external system for integration and wish not to do so? Are you worried about sharing the Username / Password to connect with external system and how to hide it? Then Named Credentials is the way to go and you are at right place to learn and know …
A Tip A Day #24 – 3 Ways to delete an Apex class from Production
This post is a part of the daily blog series A Tip A Day, daily dosage of learning! Day #24 - THREE Ways to remove an Apex class from Production In a scenario, you no longer want to use the functionality in your apex class remove it from your Salesforce production org, so as to reduce the …
Continue reading "A Tip A Day #24 – 3 Ways to delete an Apex class from Production"
A Tip A Day #23 – 5 Ways To Stop Trigger In Production
This post is a part of the daily blog series A Tip A Day, daily dosage of learning! Day #23 - FIVE Ways To Stop Trigger In Production In a scenario, you no longer want to use the functionality in your trigger and want to turn it off in your Salesforce production org, as in make …
Continue reading "A Tip A Day #23 – 5 Ways To Stop Trigger In Production"
A Tip A Day #18 – Rollup Summary Decimals in Database
This post is a part of the daily blog series A Tip A Day, daily dosage of learning! Day #18 - Rollup Summary Decimals in Database Lets say you have a rollup summary field of decimal on your master object record which is a SUM of currency field of your child records. Scenario: For a child …
Continue reading "A Tip A Day #18 – Rollup Summary Decimals in Database"
7 Ways to Lock a Record in Salesforce
In this blog post, I'd be discussing the different ways to lock a Salesforce record in UI. By lock, I mean, the user shouldn't be able to edit the field values of the record. I have identified 7 ways to lock a record using configuration and coding. There is a general requirement that the Business doesn't …
Visualforce Email Template with Records
The following post explains how to send a complex, stylized table formatted email with data records from your Salesforce system. For this, we will be using Visualforce Email Template, Visualforce Component with an apex custom controller. The visualforce component will be placed in the email template; the custom controller will pull the required data from Salesforce using …
Salesforce Code Scanner – Health Check
As a Salesforce Developer, have you ever worried about the code in your Salesforce org and wanted to check if: the code you have written/existing code is in line with the best practices? you have followed the coding guidelines suggested by Salesforce? there are any loop holes in the code that could cause severe security …
Use LIKE with Collections – SOQL Query
How do we use LIKE in SOQL to find accounts that contain the string ABC? Using the following query List<Account> accList = [SELECT Id FROM Account WHERE Name LIKE %ABC%]; Lets say, there is a set of Account Names with these 3 accounts below (abc, xyz, rst) Set<String> setAccNames = new Set<String>(); setAccNames.add('ABC'); setAccNames.add('XYZ'); setAccNames.add('RST'); And …
Wrapper Class Multiple Value Sorting
Came across a scenario where I had to sort a wrapper class. Normal list sorting is simple, list.sort(); would help. But for a wrapper class, it's not straight-forward but it isn't that hard. Below is a simple wrapper class without sorting - this wrapper has 2 columns : Area and AD. global class AreaWrapper{ public String …