Export pdf/csv to a sftp/ftp


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

@sisa-zaza That is an excellent question, and sorry for the delay.

Unfortunately CC does not yet expose this data directly, but you can infer it from the end of the URL of the attachment.

This post explains how you can get the filename (which will include the file extension, and by extension the file type)

Let me know if that solves your problem

1 Like