Category: Apex

Platform events in Salesforce !

Salesforce has recently introduced this feature and its much needed one. Let’s understand couple of Terms before going into deep. I am using TrailHead reference to write on this topic.   Event A change in state that is meaningful in a business process. Event message A message that contains data about the event. Also known […]

Efficiently generate Set from List

Let’s check with some examples, Using Map

In second line we are creating new Map<Id,Sobject> from the results of first line, and then taking the keys from this map. Once this done, heap space is released for this map, and so it is one of the efficient method. One Liner (Without Dynamic SOQL)

[…]