You need to sign in to do that
Don't have an account?

Query Reports
Hello,
Is it possible to query Reports and retrieve its Id. Something like...
I have a requirement where I want to redirect the user to a Report from my SControl. I dont see any Report object in the salesforce schema.
Thanks,
Rohit
Is it possible to query Reports and retrieve its Id. Something like...
Code:
Select Id from Report where name='MyReportName';
Thanks,
Rohit
Hello Rohit,
You can redirect the user to a Report using following code: -
Thanks
Message Edited by Sunil on 12-15-2008 12:03 AM
Hey, I know it has been a while but did you find a solution to this issue. I want to use the report name to fetch the report Id, the report id might change in production.
Thanks
Reports is meta data and not a SObject so you cannot query.
Recommend using custom setting. That way you can have the report Id externalized from the code.
Thanks
Although i don't remember what custom settings are i will look into it.
Thanks, i really appreciate the fast response.
How can we use CustomSetting to give me ReportID value? Can you please summarize how to use them?
I'm running into same issue and could not implement the solution using CustomSetting too.
I need to read ReportID in user's Org, using ReportName. The ReportID cannot be hardcoded into the URL, I need to generated Dynamically using ReportNam.