+ 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.