I can query debug logs via ApexLog object with SOQL, but the result doesn't contain an actual message.

How can I access the message? Is it achievable with SOQL or some API?

  • 1
    Explore tooling API for same .I need to do some homework to get to actual answer but thats hint to start – Mohith Shrivastava Feb 23 '15 at 13:56

Tooling API has support since v 28 to download the Raw Apex Log. See this for more info.

  • Is it possible to get the Raw Apex Log with partner SOAP API? – Bart Juriewicz Feb 23 '15 at 21:53
  • 1
    No, you cannot get the debug log using Partner API or any other Salesforce provided API – singularity Feb 23 '15 at 22:37

It is possible also with REST Api, using the following path:

"/services/data/v29.0/sobjects/ApexLog/" + logId + "/Body/"

The log Id must be known (could be fetched with simple SOQL) and only one log per request can be fetched.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.