+ Start a Discussion
Bill Bell 3Bill Bell 3 

Files Object Name

Simple question.  On an Opportunity you can upload files.  I want to query the upload file object and check what files were uploaded.  What is the object name to query?  I've been looking for an hour and can't find it.
Lokesh KumarLokesh Kumar
Query Attachment Object ! 
Lokesh KumarLokesh Kumar
Sorry Please ignore the above reply.

You have to query ContentDocumentLink Object like in the below Article.

Thanks !
Bill Bell 3Bill Bell 3
I was able to get an Id using the article but what object do I query using the Id?  I need the file name and date it was uploaded.
Lokesh KumarLokesh Kumar
You can Query ContentDocumentLink Object.
Bill Bell 3Bill Bell 3
The only fields in ContentDocumentLink are id, linkedentityid, contentdocumentid, isdeleted, systemmodstamp, sharetype and visibility.  I don't see any object I can query.  Do you have an example?
You can use ContentDocument.Title and same for date in ContentDocument.CreateDate/LastModifiedDate/LastViewDate.