executeanonymous()

Executes a block of Apex.

Syntax

ExecuteAnonymousResult[] = binding.executeanonymous(string apexcode);

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.

* Link goes to the SOAP API Developer's Guide.

SOAP API Developer's Guide contains information about security, access, and SOAP headers.

Previous
Next