You need to sign in to do that
Don't have an account?
Dave Hagman
Execute Anonymous Apex using REST/Tooling API
Hey all,
I have a question about the execute anonymous REST service:
I need to also get the HEAP dump from the call, like the debug logs you receive when running anonymous from Developer Console/Eclipse/Mavens etc.
The only response I get is (in JSON):
Has anyone ever done this or know how to do it? I have been scraping documentation for days with no luck. Thanks!
I have a question about the execute anonymous REST service:
/executeAnonymous/?anonymousBody=ANONYMOUSE_CODE_HERE
I need to also get the HEAP dump from the call, like the debug logs you receive when running anonymous from Developer Console/Eclipse/Mavens etc.
The only response I get is (in JSON):
{ "line" : -1, "column" : -1, "compiled" : true, "success" : true, "compileProblem" : null, "exceptionStackTrace" : null, "exceptionMessage" : null }
Has anyone ever done this or know how to do it? I have been scraping documentation for days with no luck. Thanks!
Another thing to consider is possibly taking a look the ApexExecutionOverlay object. Looks like you can specify a script and then get back the HeapDump in as a result. Although, I'm not sure that behaves the same as execute anonymous. http://www.salesforce.com/us/developer/docs/api_tooling/Content/sforce_api_objects_apexexecutionoverlayaction.htm