Skip to main content

#Files Storage5 discussing

I know the Attachments to File app, or Magic Mover, is not a direct salesforce thing but I'm having some issues. My research told me the app was supposed to delete the attachemnts once they were converted. That isn't happening. I found the PDF that says once the files are converted I will be given the OPTION to delete the attachments, but it isn't showing up. 

 

I need to convert the attachments to files so I can use the Archive to store these files outside of my org but the converter is only going to make my storage issue worse. Has anyone else used this tool successfully? 

 

#Salesforce Admin #Files Storage

3 answers
  1. Aug 20, 3:46 AM

    You have it right, Magic Mover COPIES attachments into Files, it does not move-and-delete, so storage temporarily doubles (both the Attachment and the new File exist). That is by design: it leaves the originals so you can verify the conversion before anything is removed. The 'option to delete' not appearing is a common snag, depending on the version that delete step either sits behind a setting or just is not surfaced in the UI you are on. 

     

    To actually reclaim the storage, do it as a deliberate second step AFTER you have confirmed the Files exist: 

     

    1. Verify the conversion. Confirm the new Files (ContentDocument / ContentVersion) exist and are linked to the same records, a quick report on Files or a spot-check of a few records' related lists, before deleting anything. 

     

    2. Delete the original Attachments yourself. Since the tool is not giving you the delete option, the reliable route is Data Loader: export the Attachment object (filter to the ones already converted), then run a Delete on those Attachment Ids. Test on a small batch first. 

     

    3. Empty the Recycle Bin. This is the part that actually frees storage, deleted Attachments sit in the Recycle Bin for about 15 days and still count against your limit until it is purged. Purge it (or they auto-purge after ~15 days) and only then does the storage number drop. 

     

    So: the doubling is expected, the delete is a separate step you drive yourself, and storage only drops once the Recycle Bin is emptied. Run one small test batch end to end (convert, verify, delete, purge) so you are confident before doing it across everything. 

     

    If this helps, please mark it as the Best Answer so it helps the next person. Thanks :)

0/9000

From what I understand thus far about content bodies, they're essentially the body of a file that is uploaded to SF. Documents are files that have been linked to a record, and attachments are files that have not been linked. Do I have that right? 

 

I am trying to figure this all out in terms of our storage usage. If content bodies are the file itself, why don't the counts match?  Do attachments have content bodies? Are documents just the metadata for the content bodies?  

 

#Files Storage

 

 

Storage Usage: Overlap?

 

 

2 answers
  1. Aug 19, 3:24 PM

    @Mahogany Lore, MLIS

    The behind the scenes of how Salesforce stores files can definitely get confusing. One way to avoid all this hassle is to stop storing files in Salesforce. 

     

    The next issue to overcome is... well these files are related to records and data in Salesforce, I need my users to see which documents are attached to which records! 

     

    Part of the reason why we built

    sFiles

     

    You'll be able to save on your Salesforce storage costs (which it looks like you're getting close to capacity with content bodies) and you'll be able to leverage SharePoint inside of Salesforce... which most businesses already have.

0/9000

I'm testing out enhanced domains so I've created a partial copy of our production org that contains ALL objects. I noticed in a logged email record attached to a contact that the attachments (images) are gone. There should be (2) attachments highlighted in green from when I compare to my production org.

Do enhanced domains break files and attachments?

I also noticed when I go to File, there are no files. I have plenty of files 'Owned By Me' in my production org:

Screen Shot 2022-10-27 at 3.36.37 PM.png

 

1. Does enhanced domains break and lose attachments and files?

2. Or is this just partial sandboxes don't carry over these things?

 

Please help! thanks!

 

#Sandboxes #Files Storage #Data Management 

18 answers
0/9000