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
Raghu RamanujamRaghu Ramanujam 

Enable Content Delivery (Illegal assginment from List<ContentDocument> to List<ContentDocument>

Hi All,

I am trying to convert attachments into Files using Apex.

I am getting aa error at the below code.
"List<ContentDocument> cds = [Select id,Title,LatestPublishedVersionId from ContentDocument where id IN :ContentDocumentIDs];"

Not sure why?

Thanks,
Raghu

v varaprasadv varaprasad
Hi Raghu,

Please check once following setting are enabled or not.

User-added image

Hope this helps you.

Thanks
Varaprsad
Raghu RamanujamRaghu Ramanujam
Yes Varaprsad, it is enabled.