How do I get the SOQL query for this report?
There is no way to get the SOQL automatically generated for you. It is entirely possible that a given report cannot be represented by a single SOQL query.
Here are some ideas.
Analyze the report and determine what a SOQL query or multiple SOQL queries with Apex to process and combine their results would be.
Use the Analytics API to run the report and analyze the results. The Analytics API is available via Apex as well as via REST.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1 year ago