Automate sending of Email with attachement(s) from a records File Upload field
I am trying to create a function that will search for pdf documents
that are attached to records via file upload fields, then send an email
with the document(s) attached to it.
I've seen Anbu's response too this specific idea
here, however I just cannot get the file attaching to work.
Below is what I have so far:
- H2Rrecord = zoho.crm.getRecordById("House_Certification", 289407000008654104);
H2R_Current = H2Rrecord.get("Current_Certificate");
sendmail
[
To : "XXXXX"
From : zoho.adminuserid
Subject : "Test for file upload field!!"
Message : "Your message"
Attachments : file:input.H2R_Current
]
This
snippet doesn't present me with any errors when I execute, and it does
send an email, however I clearly haven't got something right with the
attachments file input line.
To clarify, the "Current_Certificate" is the file upload field that i'm trying to get the file from.
Is anyone able to help at all?