What I want to do is pretty simple, but I can't seem to find a way to do it. I need to take report metadata and extract from it:
- API names of objects from which the report extracts data
- API names of fields on that objects
- Applied filters
What I essentially need is to take a report and construct a set of SOQL queries that will pull from SFDC exactly the same data as the report.
It's more or less clear with custom fields:
But when it comes to standard fields and objects, I'm at a loss, how do I extract actual API name of the field from those cryptic names (e.g. LEAD_OWNER)?
Attribution to: taralex
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/32603