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
RIteshMRIteshM 

Getting Access to Files through Apex Code

There is a Tab named as Files in dev org by default.there are some files init. can anyone guideline how to get access to these files through Apex and  there content as Blob data type. i want to know id of these files through SOQL then how to do that

sambasamba

List<Attachment> attachments = [select Id, Body from Attachment];

 

Hope this helps.

 

Thanks,

Samba

Yoganand GadekarYoganand Gadekar