+ Start a Discussion
ShayneOShayneO 

Getting a Report ID

I'd like to build a trigger that pulls that updates a text field on a record with the report ID of a particular report.  I'm not sure how to go about obtaining the report ID.

jungleeejungleee

You can write a query on the report object. somethign like this:

 

SELECT DeveloperName,Id,Name FROM Report

 

 For more information on the report object you can check here : http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_report.htm

Satish_SFDCSatish_SFDC
The query above should work fine to get the name or id of the report.
But what is the use case.
What is understand is, on every update of the record, the trigger should get the report id and update it on another text field.

Is that right.

Regards,
Satish kumar