Attachment from another form into a email.
Hello,
I have a Form (registro_ventas) which have 2 attachments in each record. I did a "Successl form submission" script that sends a mail to the advisor (advisorx) to inform that he has a new request, the mail has the formdata an the 2 a attachmente. This is my code:
from :zoho.adminuserid
to :advisorx
reply to : mail3
subject :"You have a new request"
message :formdata
Attachments :file:input.archivo_numero1,file:input.archivo_numero_2
But I have another form (reassigns_manager) in the same application that allows the manager to reassign the request to another advisor. I did a scrip that sends a mail to the new advisor informing that he has a new request but I dont know how could I include the atachments from the form registro_ventas.
I got date from the "request record" (order for example) using:
var1=registro_ventas[client_name=input.client];
order=var1.Order_number;
But I do not know how to get the attachments to includ it on the new email. I tried attach1=va1.archivo_numero1 but is not working. I onli get the string but not the file.
from :zoho.adminuserid
to :NEW_advisor
reply to : mail3
subject :"You have a new request"
Attachments : XXXX
Really Thanks is somebody can help me, I have 2 day programming in zoho. Thanks.