Blogs

  • Default sort order in list in apex

    Default Sort Order of sObjects The List.sort method sorts sObjects in ascending order and compares sObjects using an ordered sequence of steps that specify the labels or fields used. The comparison starts with the first step in the sequence and ends when two sObjects are sorted using specified labels or fields. The following is the comparison sequence…

    Read more…

  • Current User info in Aura Lightning JS controller or Comunity without apex

    var userId = $A.get(“$SObjectType.CurrentUser.Id”);

    Read more…

  • How to insert CaseMilestone in Salesforce

    Sometimes we get such a scenario, we may need to create CaseMilestones– especially when you are doing data migration from Salesforce-to-Salesforce; but Salesforce does not allow to create CaseMilestone through custom means. But we can follow the below steps to insert it in new org same as we have in current org (assuming that you…

    Read more…