Skip to main content

11.2.0 - Apex log analyzer, Scratch Orgs and Org Deployments

What's new​

Apex log analyzer​

Debug Logs, Anonymous Apex and the Apex Test Runner results now have an Analyze mode alongside the raw log. Every row can jump to its line in the raw log.

  • Overview: governor limit usage, slowest methods and hints for SOQL queries that run in a loop.
  • Call Tree: the methods and automation the transaction called, as a tree.
  • Database: SOQL queries and DML statements.
  • Automation and User Debug: the automation that ran and your debug statements.

Debug Logs also accepts local .log and .txt files by drag-and-drop or upload, so a log can be analyzed without fetching it from an org.

Trace flags and debug levels​

The Debug Logs page now manages trace flags for any user: yourself, the Automated Process user, or a user you search for. Trace flags can be created, extended, renewed and deleted, and debug levels can be created from presets, edited, cloned and deleted. The log list can be filtered to your logs, all users, or one user.

Scratch Orgs​

A new Scratch Orgs tool on the web and desktop apps lists the scratch orgs of the selected Dev Hub.

  • Create a scratch org from a form, or upload a project-scratch-def.json to fill it in. settings and objectSettings from the definition are deployed once the org is connected.
  • Connect a scratch org created with Jetstream without a password. Scratch orgs created by other tools, such as the Salesforce CLI, connect with a password.
  • Open or delete a scratch org, create users, and generate passwords.

Team admins using access profiles need to enable the Scratch Orgs tool for members on a custom profile.

Quick deploy and cancel deployments​

A successful validation can now be quick deployed from the deploy status modal right after validating, or later from Deploy History. Quick Deploy is offered only when Salesforce will accept it: the validation ran tests, is less than 10 days old, and no later deployment has completed in the org. Deploy Options shows a hint when the chosen test level runs no tests, because those validations cannot be quick deployed.

A deployment that is in progress can be canceled from the deploy status modal.

Org Deployments​

An Org Deployments button next to History on the deploy pages lists every deployment and validation in an org, including ones started from change sets, the Salesforce CLI and other tools.

  • Filter to all deployments, all validations, or validations that are ready to quick deploy.
  • Quick deploy an eligible validation, or cancel a pending or in-progress deployment. Validations that cannot be quick deployed say why.
  • Open the details of any deployment, follow a running one live, and view, copy or download a package.xml rebuilt from its components.

Viewing deployments requires the "Modify Metadata Through Metadata API Functions" or "Modify All Data" permission in Salesforce.

Bypass duplicate rules​

A Bypass Duplicate Rules option is available when saving inline edits from query results, in mass update under Advanced Options, and in Load Records when using the Batch API. It only applies to duplicate rules with an action of Allow and Alert. Rules that Block cannot be bypassed.

The Bulk API does not support this option, so mass update sends records through the Batch API when it is enabled, 200 records at a time. That is slower and uses more API calls on large updates.

Query history​

  • When the list covers all orgs, each card shows the org the query was run against.
  • Cards show the total record count from the last run.
  • Editing a saved query that belongs to another org now uses that query's org instead of the selected org.
  • "Load more" on the results page no longer increases the run count of the query.

Other fixes​

  • Large Excel downloads that failed with an "Invalid string length" error now complete.
  • Create Fields no longer fails to deploy when the selected objects have more custom fields than Salesforce returns in one query batch.
  • Deploy results now report the correct number of tests run and total test time.
  • Closing a modal in Safari or Firefox on macOS returns keyboard focus to the button that opened it.
  • Manage Permissions, Permission Analysis and the Record Type Picklist Manager have improved keyboard and screen reader support.
  • Team management, org groups, billing and profile pages have improved keyboard and screen reader support, including keyboard drag and drop for org groups.
  • Dropdowns are now at least as wide as their input.
  • Sandboxes opened through Salesforce Canvas are now labeled Sandbox instead of Production.