oes anyone know how to relate the Files (ContentVersion, ContentDocument, ContentDistribution) to the case object?
Use case: I am trying to run a query in workbench on how many public links are enabled for what cases. ContentDistribution gives me the URL and has a field called.
RelatedRecordId
Description
ID of the record, such as an Account, Campaign, or Case, that the shared document is related to.
However, when I run the query RelatedRecordId comes up blank, yet when I open the document in SFDC I see that it is related to a case
Thank you for your responses @Neil Hayek and @Jimmy Johnson. I stepped away from this flow for a few days, but I think I know what the issue is now. The attachments/files I'm querying came in on an email. Although, they appear on the Case record, I believe they're related to the email message record only. When I do the query against the email message record, I do get the files I'm expecting. Thanks again!