Automatically use the Metadata API if the Tooling API throws out an error due

Issue #1066 resolved
Joey Chan created an issue

We cannot modify an existing Apex class via Tooling API if it is a scheduled job.

Requirement: Automatically use the Metadata API if the Tooling API throws out an error due to the following error:

This Apex class has batch or future jobs pending or in progress This schedulable class has jobs pending or in progress

In order for this to work, the setting in the Deployment Settings | Allow deployments of components when corresponding Apex jobs are pending or in progress has to be enabled

More info: http://releasenotes.docs.salesforce.com/en-us/winter15/release-notes/rn_deploy_with_jobs.htm

Comments (2)

  1. Log in to comment