-1

I have an object that has a 'Files' list in the 'Related' tab and have attached a Microsoft Word document to that list in my testing org. Is it possible to deploy that file so I don't have to manually add it in the next Org? Or would it be possible to store that file online and use an Apex script that retrieves that file and attaches it to the record in the 'Files' list?

closed as too broad by glls, Reshma, Pranay Jaiswal, battery.cord, Jayant Das Mar 4 at 16:22

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

Files are essentially data records and thus cannot be deployed using change sets or the ant deployment tool. You will need to use data export / import methods to copy your files from one org to another.

  • Thanks David, do you think it would be possible to do that in Apex? For example, store the file on Dropbox then write an Apex script that retrieves that file and sets it and adds it to the 'Files' list? – tom_12321 Feb 27 at 19:39
  • It might be possible but it would be very complicated. – David Cheng Feb 28 at 1:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.