+ Start a Discussion
jawtechjawtech 

report API?

Is it possible to either run a report or retrieve a report meta data through the API? If so where would the definition of the reports syntax be defined?

 

I would like to drive code based on how my users have set filter criteria on certain reports.

Best Answer chosen by Admin (Salesforce Developers) 
shillyershillyer

You can retrieve the metadata of a custom report, here's a link to the doc:

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_report.htm

 

Hope that helps,

Sati

All Answers

shillyershillyer

You can retrieve the metadata of a custom report, here's a link to the doc:

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_report.htm

 

Hope that helps,

Sati

This was selected as the best answer
jawtechjawtech
that's good. I can use the reportFilter to define a where clause and run a query myself (that is if there is no way to get a report's actual data through the API).
shillyershillyer

Right - you can't execute the report via the API, you would need to rebuild the query using the data web services API.

 

Best,

Sati

Gareth DaviesGareth Davies

I am not sure if this still works, but this was the solution that was used a few years back.

 

http://www.salesforcewatch.com/2006/08/report_scraping.html

 

DrawloopSupportDrawloopSupport

If you are looking for API access to report DATA, please promote this idea:

 

https://sites.secure.force.com/success/ideaView?id=08730000000Jfw2AAC

 

Thanks!

Doug ChaseDoug Chase

Chiming in here to agree. It's much too difficult to get report data out of Salesforce and into other applications! I'm digging for better ways to approach this right now.