Skip to content

carlwillimott/salesforce-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Salesforce Utilities

Skew Helper

A simple helper class that can be used to identify the three different types of skew.

  • Account Data Skew
  • Ownership Skew
  • Lookup Skew

Account Data Skew

Find accounts that have the most contacts, opportunities and cases.

List<AggregateResult> accs1 = Skew_Helper.getAccountsWithTheMostContacts();
List<AggregateResult> accs2 = Skew_Helper.getAccountsWithTheMostOpportunities();
List<AggregateResult> accs3 = Skew_Helper.getAccountsWithTheMostCases();

Ownership Skew

Find users that own the most records of a particular object (either standard or custom).

List<AggregateResult> users = Skew_Helper.getTopOwnersForSObject('Account');

Lookup Skew

Find records that have the most lookup relationships to another object.

List<AggregateResult> cons = Skew_Helper.getTopRelationshipsForRelatedSObject('Contact', 'Account.Id');

Useful Links

About

A series of utilities classes to help overcome common Salesforce problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages