function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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