forrest icon indicating copy to clipboard operation
forrest copied to clipboard

Tooling API execute anonymous apex code to get results

Open rohitasare7 opened this issue 2 years ago • 0 comments

I am trying to run an execute anonymous statement using tooling API. I am running a very simple

System.debug('value');

Now the issue is as this is a GET request, the response that I get is like this -

{ "line": -1, "column": -1, "compiled": true, "success": true, "compileProblem": null, "exceptionStackTrace": null, "exceptionMessage": null }

How can I get the results of my code execution to be displayed in response?

Thanks

rohitasare7 avatar Nov 28 '23 14:11 rohitasare7