Putattachment function - transfer of file from IO Area to actual fluid page attachments
Hi Team -
Just want to check if you've had similar requirement like this.
I wanted to mass attach attachments to employees remote work data. files will be from IO area.
i tested for 1.
uploaded file in IO Area.
Validated that filepathname is correct. If fileexists (&filepath, %filepath_absolute) = returned true.
I then used the putattachment function.
&res = putattachment(URL.HR_ATTACHMENT_FLU, &filepathname,RECORD.HR_RW_SS_ATT);
URL.HR_ATTACHMENT_FLU - got this from maintain URL page for fluid attachments
RECORD.HR_RW_SS_ATT , got this from the Configure Keys page for remote work.
If &res then "Success" else "upload fail" ….