+ 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.