Activity Forums Salesforce® Discussions How do I query ContentDocument in Salesforce? Reply To: How do I query ContentDocument in Salesforce?

  • Sumit

    Member
    June 18, 2020 at 7:03 am

    Search Results
    Featured snippet from the web
    Execute the below queries in the Developer Console.
    SELECT Id, LinkedEntityId, ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId=<<Id og the document>> 2 records will be returned.
    SELECT Id, Title FROM ContentDocument WHERE Id=<<ContentDocumentId from the above query>> 2 rows will be returned.