Newer Version Available
executeanonymous()
Executes a block of Apex.
Syntax
Usage
Use this call to execute an anonymous block of Apex. This call can be executed from AJAX.
This call supports the API DebuggingHeader and SessionHeader.
If a component in a package with restricted API access issues this call, the request is blocked.
Apex classes and triggers saved (compiled) using API version 15.0 and higher produce a runtime error if you assign a String value that is too long for the field.
Arguments
| Name | Type | Description |
|---|---|---|
| apexcode | string | A block of Apex. |