Copy contents of File Upload Field into Workdrive
Hello,
I have set up our CRM so that a Workdrive folder is automatically created for each Deal via workflow, this adds the id of the folder into a dedicated field.
We also have a field on each Deal called 'Approved Layout', which is a file upload field. I need to be able to copy the files which have been uploaded into the corresponding Workdrive folder for each Deal. I cannot find any code or information which shows me how to do this.
I am assuming that I need to create a custom function which will a) find the fields b) download the contents and then c) upload to WD but I'm not sure where to start with getting the field upload contents.
Can you help?
Emma