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
vikas  malikvikas malik 

Reports in a select field

I need to list the names of reports from a specific folder in a select field. searched for it and found nothing about it
Best Answer chosen by vikas malik
Gaurav NirwalGaurav Nirwal
The ownerId field of the "report" object would be the Id of the "folder" object, so you should be able to query for a list of reports in a folder using the folder id. Then you can form a string with the names of the reports and then update it in a field using a trigger.

Please see this: https://developer.salesforce.com/forums?id=906F00000008zEMIAY

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.

All Answers

PratikPratik (Salesforce Developers) 
Hi Vikas,

You can refer to this post:
https://developer.salesforce.com/forums?id=906F00000008zEMIAY

Thanks,
Pratik

P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.
Gaurav NirwalGaurav Nirwal
The ownerId field of the "report" object would be the Id of the "folder" object, so you should be able to query for a list of reports in a folder using the folder id. Then you can form a string with the names of the reports and then update it in a field using a trigger.

Please see this: https://developer.salesforce.com/forums?id=906F00000008zEMIAY

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
This was selected as the best answer