Duplicate files and attached images
Hello team. There is a situation in which, through a plugin with beanshell, a record made through one form must be replicated in another. So what we are doing is generating a new unique id for the record and making an insert directly to the database.
However, if an attachment was mentioned in the original record, we have to simply replicate the name of the file that is described in the field of the database? We have seen that links to attachments are related to the original record that generated them, so the download service does not find the complete file when they are duplicated in the DB (it shows error 404). Similar case with the images. Do you have an idea to do this duplication of records without losing the link of the attached files and images?
regards