Interesting things about APEX Programming

Monday, June 29, 2015
  • If You Wanted to know the starting 3 digits for any object in your code,                                 here is the snippet:Opportunity.sObjectType.getDescribe().getKeyPrefix()
  • Id will be retrieved automatically in a SOQL query
  • If we wanted to query ‘accountId, account.name’ fields in a query just specify ‘account.name’ which will retrieve ‘accountId’ automatically
  • SOQL query can be ORDER BY 32 fields
  • SOQL/SOSL statements cannot exceed 10,000 characters
  • SOQL query can’t run more than 120 seconds, better optimize your query
  • If 10 synchronous processes are running more than 5 seconds then the 11th process will be terminated by salesforce – Native Salesforce concurrent limit
  • If 25 synchronous processes are running more than 20 seconds then the 26th process will be terminated by salesforce – Salesforce API concurrent limit
  • No comments: