Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ExecuteAnonymousResult
The executeanonymous() call returns information about whether or not the compile and run of the code was successful.
An ExecuteAnonymousResult object has the following properties:
| Name | Type | Description |
|---|---|---|
| column | int | If compiled is False, this field contains the column number of the point where the compile failed. |
| compileProblem | string | If compiled is False, this field contains a description of the problem that caused the compile to fail. |
| compiled | boolean | If True, the code was successfully compiled. If False, the column, line, and compileProblem fields are not null. |
| exceptionMessage | string | If success is False, this field contains the exception message for the failure. |
| exceptionStackTrace | string | If success is False, this field contains the stack trace for the failure. |
| line | int | If compiled is False, this field contains the line number of the point where the compile failed. |
| success | boolean | If True, the code was successfully executed. If False, the exceptionMessage and exceptionStackTrace values are not null. |