Salesforce Chrome Extensions

Google Chrome is very powerful web browser. One of the best things about Chrome is it’s massive library of extensions. These extensions are basically add-ons for your browser that enhance its functionality with built-in applications.

  1. Salesforce Navigator
    This extension helps you get to any salesforce page quickly. Just type in what you need to do.
  2. Salesforce Admin Check All
    This extension provides ‘check all’ checkboxes on admin pages.
  3. Salesforce Developer Tool Suite
    Suite of tools like Debug log viewer, which loads without any authentication or ask for username or password.
  4. Salesforce advanced Code searcher
    By using the advanced quick find you can get your code few clicks shorter. Also, you can search any string your code.
  5. Record and Metadata Comparator for Salesforce
    Compare Record data values and object metadata in Salesforce.

Permanent link to this article: https://salesforcebuddy.com/2019/03/salesforce-chrome-extensions/

Governor Limits


As you ma be aware that Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. If some Apex code exceeds a limit, the associated governor issues a runtime exception that cannot be handled.

Some of the common governor limits are

Total number of SOQL queries issued 100
Total number of records retrieved by SOQL queries 50,000
Total number of SOSL queries issued 20
Total number of DML statements issued 150
Total number of sendEmail methods allowed 10

Limits Class
Contains methods that return limit information for specific resources.

Example:
System.debug(‘Total Number of SOQL Queries allowed in this apex code context: ‘ + Limits.getLimitQueries());


System.debug(‘Total Number of records that can be queried in this apex code context: ‘ + Limits.getLimitDmlRows());


System.debug(‘Total Number of DML statements allowed in this apex code context: ‘ + Limits.getLimitDmlStatements() );


System.debug(‘Total Number of script statements allowed in this apex code context: ‘ + Limits.getLimitScriptStatements());


System.debug(‘Total Number of SOQL Queries allowed in this apex code context: ‘ + Limits.getLimitQueries());
System.debug(‘Total Number of records that can be queried in this apex code context: ‘ + Limits.getLimitDmlRows());
System.debug(‘Total Number of DML statements allowed in this apex code context: ‘ + Limits.getLimitDmlStatements() );
System.debug(‘Total Number of script statements allowed in this apex code context: ‘ + Limits.getLimitScriptStatements());

Permanent link to this article: https://salesforcebuddy.com/2019/03/check-apex-limits/

Metadata API

Metadata API

Use this API to retrieve, deploy, create, update or delete customization information, such as custom object definitions and pagelayouts, for your organization. This API is intended for managing customizations and for building tools that can manage the metadatamodel, not the data itself.To create, retrieve, update or delete records, such as accounts or leads, use dataSOAP API or REST API.

Retrieving and Deploying Metadata

Retrieve and deploy metadata using the Metadata.Operations class.

Use the Metadata.Operations.retrieve() method to synchronously retrieve metadata from the current org. Provide a list of metadata component names that you want to retrieve. Salesforce returns a list of matching component data, represented by component classes that derive from Metadata.Metadata.

Use the Metadata.Operations.enqueueDeployment() method to asynchronously deploy metadata to the current org. Deployment is queued for asynchronous processing. When deploying metadata, you can create and update components, but not delete components. There are limitations on which components that apps and packages can deploy and which types of apps and packages can deploy to which types of orgs.

Permanent link to this article: https://salesforcebuddy.com/2019/02/metadata-api/