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

How to convert files to Attachment in Salesforce?

Hello, we have a problem in our ORG. We have an integration but it was taken in consideration only for Attachments and now we want to switch to Files and when we switch(we tested with Files), it failed.

The idea here is how we can use the Files related list and when we add a new File, this file to be converted into an Attachment so that our interface doesn't break?

VinayVinay (Salesforce Developers) 
Hi Cris,

Check below reference that can help you to convert files to Attachment.

Please mark as Best Answer if above information was helpful.


Hi @Vinay,

It doesn't do anything... It's not working.