Posts

Showing posts with the label development

Efficient way to write apex code

Image
Set.contains(element) Vs List.contains(element)  Guess What if I tell small things Matter!!!                     If you’re having a cup of tea, pause for a moment because next two minutes will reveal something simple yet less known it the world of Salesforce                     Set && List your favorite go to during the typical development cycle. But going forward you will definitely double check before using them. For Instance, look at this example                     Take two set of collections (Set<Integer> and List<Integer>). Now the crux of the discussion which one will give better performance. Lets get technical Which will give better performance Set or List ?      a.     I f collection is List :  List < Integer > listInteger = new List ...
Image
Shoot Your Custom Notifications Via Apex        Summer 19 bought a lot of surprises and one of the most enchanting one was that to send custom bell notifications from our inmate, the "Process Builder".       Custom notifications are the soul of the modern business. This feature allows you to send important information, via push to mobile or desktop alerts.    Notifications can be tailor made to inform users regarding any of the record update.  Custom Bell Notifications provide the flexibility of showcasing relevant information at the right time to our users.        All these involves just a handful of steps.       From setup, enter Custom Notifications in the quick find box.      Create a new custom notifications type, also define either desktop or phone to pop-up your notifications. You can select both the locations.        Hope that wa...