Skip to main content
replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
Source Link

I suspect you won't be able to get true asynchronous anonymous code working.

The problem is that your anonymous Apex only exists for the transaction it was created in. By the time the asynchronous Apex runs there is no definition of your anonymous Apex to be found on the application server that would ultimately run it.

Without true Eval support in Apex there isn't a way to run anonymous Apex on the fly. You can fake it a bit with callouts, but that won't give you the higher limits you are after.

See also:

I suspect you won't be able to get true asynchronous anonymous code working.

The problem is that your anonymous Apex only exists for the transaction it was created in. By the time the asynchronous Apex runs there is no definition of your anonymous Apex to be found on the application server that would ultimately run it.

Without true Eval support in Apex there isn't a way to run anonymous Apex on the fly. You can fake it a bit with callouts, but that won't give you the higher limits you are after.

See also:

I suspect you won't be able to get true asynchronous anonymous code working.

The problem is that your anonymous Apex only exists for the transaction it was created in. By the time the asynchronous Apex runs there is no definition of your anonymous Apex to be found on the application server that would ultimately run it.

Without true Eval support in Apex there isn't a way to run anonymous Apex on the fly. You can fake it a bit with callouts, but that won't give you the higher limits you are after.

See also:

Source Link
Daniel Ballinger
  • 103.1k
  • 40
  • 275
  • 601

I suspect you won't be able to get true asynchronous anonymous code working.

The problem is that your anonymous Apex only exists for the transaction it was created in. By the time the asynchronous Apex runs there is no definition of your anonymous Apex to be found on the application server that would ultimately run it.

Without true Eval support in Apex there isn't a way to run anonymous Apex on the fly. You can fake it a bit with callouts, but that won't give you the higher limits you are after.

See also: