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
Suraj PSuraj P 

Has anyone here been able to query AttachedContentDocuments on a standard or custom object in an Apex Test class?

I have created a ContentDocument and ContentDocumentLink against the parent object record. However, AttachedContentDocuments related list for the record is still empty. It works successfully, outside of a test class (via Anonymous Apex, for instance) . Any ideas would be appreciated.
Alfredo Puente VasconcelosAlfredo Puente Vasconcelos
I have the same problem, did you solve it?