function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
atidevatidev 

Find the query used to create report

Hi,

  Is there a way where we can find the query that is used to generate a Salesforce report. ?

Thanks.

sfdcfoxsfdcfox

Using the Metadata API, you can determine the filters and fields used, but I don't belive there's a nicely formatted query string that's included in this data. You'll have to write a program to process the data and build the query manually.