Send Zoho Sign Templates via email
Wed Sep 18 2024 14:58:29 GMT+0000 (Coordinated Universal Time)
Saved by
@usman13
void EFT_billing_update(int reqid)
{
get_doc_details = invokeurl
[
url :"https://sign.zoho.com/api/v1/requests/" + reqid + ""
type :GET
connection:"zoho_sign"
];
//info get_doc_details;
resp = get_doc_details.get("requests");
//info resp;
document_ids = resp.get("document_ids");
//info document_ids;
document_fields = resp.get("document_fields");
//info document_fields;
for each data in document_fields
{
fields = data.get("fields");
//info fields;
for each fields in fields
{
field_label = fields.get("field_label");
//info field_label;
if(field_label.contains("Company"))
{
//field_id = fields.get("field_id");
//info field_id;
Client_name = fields.get("field_value");
info Client_name;
}
}
}
for each rec in document_ids
{
document_name = rec.get("document_name");
//info document_name;
if(document_name.contains("ClaimShield EFT Form"))
{
document_id = rec.get("document_id");
//info document_id;
downloadpdf = invokeurl
[
url :"https://sign.zoho.com/api/v1/requests/" + reqid + "/documents/" + document_id + "/pdf"
type :GET
connection:"zoho_sign"
];
//info downloadpdf;
}
}
//////done "rajausman1313@gmail.com"
sendmail
[
from :zoho.adminuserid
to :"Billing@claimshieldpro.com"
subject :"New Client Created - " + Client_name + ""
message :"Please find attached EFT document for this client."
Attachments :file:downloadpdf
]
}
content_copyCOPY
Comments