omniphx / forrest

A Laravel library for Salesforce
https://omniphx.github.io/forrest/
MIT License
259 stars 120 forks source link

Tooling API execute anonymous apex code to get results #332

Open rohitasare7 opened 1 year ago

rohitasare7 commented 1 year ago

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