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
Dave The RaveDave The Rave 

SOQL code to select fields from specific object

All,

I am trying to write an SOQL query to return all filenames from files which are uploaded via a specific custom object.

With the code below I managed to return the file name I wanted, but the files will eventually have lots of different names. The files are uploaded via my FreeMeeting__c object.
 
SELECT Id, ContentDocument.Title, ContentDocument.createdDate, 
FROM ContentDocument
WHERE ContentDocument.Title LIKE 'Superman%'

 
Ajay K DubediAjay K Dubedi
Hi Dave,
Below query can fulfill your requirements. Hope this will work for you.

 SELECT Id, ContentDocument.Title, ContentDocument.createdDate FROM ContentDocument WHERE ContentDocument.Title LIKE 'Superman%'
 
Please mark this as best answer if this solves your problem.

Thank you
Ajay Dubedi