There are attachments on a datamodel that can be of type pdf/csv and all. How can we export that attachment that is from that specific record in the backend and send it to a sftp/ftp site with the correct file name and file-type?
Code samples please if possible