Logic Building: Binary Search on sorted List in Apex
For instance, you’re searching for a person in the phone book Their name starts with S. You could start at the beginning and keep flipping pages until you get to… Read more »
For instance, you’re searching for a person in the phone book Their name starts with S. You could start at the beginning and keep flipping pages until you get to… Read more »
When displaying image directly from static Resource You don’t need to put any file extension like jpg, png, gif when you’re referencing the static resource itself (e.g. /resource/ImageFolder represents… Read more »
Trigger to Prevent Duplicate Contacts Using Email or Phone Number We checked in earlier post how to prevent creating duplicate Records if one field is same. Now in case of… Read more »
When user tries to insert Account with name which already used in another existing account ,User should be presented with Error. There are multiple approach to do same question: Let’s… Read more »
I have a custom field on the contact record called connect_america_account__c. When the value of this contact field is true, I would like the field value on the opportunity, also… Read more »
I have picklist field “Opp_Location__c” on opportunity object and text field “Location_Type__c” on Account object. I want to copy the picklist values from all opportunities related to the account and… Read more »
This is a standard “aggregate-query-update” style trigger. First, we gather all accounts that have changed, Then we query for all contacts for those accounts and see if they matched the… Read more »