How to send Multiple Attachment || to Email || By recruit , How to send Attachment files like/doc/pdf or to email as a pdf in recruit
How to send Multiple Attachment || to Email || By recruit , How to send Attachment files like/doc/pdf or to email as a pdf in recruit from candidate/custom module
deluge////////////////////
//if attachment cv null
rec = zoho.recruit.getRecordById("Candidates",id,"all");
info rec;
// // 62102000000595056
consultant = rec.getJSON("Consultants");
// //=================Basic Info
First_Name = rec.getJSON("First Name");
last = rec.getJSON("Last Name");
Email = rec.getJSON("Email");
status = rec.getJSON("Candidate Status");
phone = rec.getJSON("Mobile");
//=====================Address Information
Street = rec.getJSON("Street");
City = rec.getJSON("City");
State = rec.getJSON("State");
Zip_Code = rec.getJSON("Zip Code");
Country = rec.getJSON("Country");
///Professional Details=====================
Experience = rec.getJSON("Experience in Years");
Highest_Qualification = rec.getJSON("Highest Qualification Held");
Current_Job_Title = rec.getJSON("Current Job Title");
Current_Employer = rec.getJSON("Current Employer");
Expected_Salary = rec.getJSON("Expected Salary");
Current_Salary = rec.getJSON("Current Salary");
Skill_Set = rec.getJSON("Skill Set");
Additional_Info = rec.getJSON("Additional Info");
Skype_ID = rec.getJSON("Skype ID");
// Educational Details=================
Institute_School = rec.getJSON("Institute School");
info Institute_School;
Major_Department = rec.getJSON("Major Department");
Degree = rec.getJSON("Degree");
Duration = rec.getJSON("Duration");
//experience
Occupation_Title = rec.getJSON("Occupation Title");
Company = rec.getJSON("Company");
Summary = rec.getJSON("Summary");
Work_Duration = rec.getJSON("Work Duration");
/// get attch resume
sendmail
[
from :zoho.adminuserid
to :consultant
subject :"'New Candidate'"
message :"<div style='text-align: center;' class='align-center'><span class='size' style='font-size:24px'><span class='highlight' style='background-color:rgb(255, 127, 0)'>New Candiate </span> </span> <br></div><div style='text-align: center;' class='align-center'><u><br></u></div><div style='text-align: left;' class='align-left'><span class='size' style='font-size:24px'><span class='highlight' style='background-color:rgb(255, 255, 255)'>Basic Detail </span> </span> <br></div><div><hr><br></div><div style='text-align: left;' class='align-left'><span class='size' style='font-size:18.6667px'><table style='width: 100%; font-size: 10pt; font-family: Arial, Helvetica, sans-serif; border: 2px solid black; color: black;' border='2' cellspacing='2' cellpadding='2'><tbody><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Name </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + First_Name + " " + last + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Email </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Email + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Phone </span> <br></div></td><td style='width: 140.5px;'><span class='size' style='font-size:18.6667px'>" + phone + " </span> <br></td></tr><tr><td style='width: 140.5px;'><div><span class='colour' style='color:rgb(0, 0, 0)'><span class='font' style='font-family:Arial, Helvetica, sans-serif'><span class='size' style='font-size: 18.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none;'>Status </span> </span> </span> <br></div></td><td style='width: 140.5px;'><div><span class='colour' style='color:rgb(0, 0, 0)'><span class='font' style='font-family:Arial, Helvetica, sans-serif'><span class='size' style='font-size: 18.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none;'>" + status + " </span> </span> </span> <br></div></td></tr></tbody></table><div><br></div></span><div><br></div></div><div style='text-align: left;' class='align-left'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='size' style='font-size:24px'>Address Information</span></span><br></div><div><hr><br></div><div class='align-left' style='text-align: left;'><table cellpadding='2' cellspacing='2' border='2' style='width: 100%; font-size: 10pt; font-family: Arial, Helvetica, sans-serif; border: 2px solid black; color: black;'><tbody><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Street </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Street + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>City </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + City + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>State/Proviance </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + State + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Zip-Code </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Zip_Code + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'><span class='colour' style='color:rgb(0, 0, 0)'>Country </span> </span> </span> </span> </span> </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Country + " </span> <br></div></td></tr></tbody></table><div><br></div><div><span class='size' style='font-size:18.6667px'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='size' style='font-size:24px'>Professional Information</span></span></span><br></div><div><hr><br></div><div><table cellpadding='2' cellspacing='2' border='2' style='width: 100%; font-size: 10pt; font-family: Arial, Helvetica, sans-serif; border: 2px solid black; color: black;'><tbody><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Experience in Years</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Experience + "</span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Highest Qualification Held</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Highest_Qualification + "</span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Current Job Title</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Current_Job_Title + "</span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Expected Salary</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>" + Expected_Salary + "</span></span></span></span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Skill Set</span></span></span></span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>" + Skill_Set + "</span></span></span></span></span></span></span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Skype ID</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>" + Skype_ID + "</span></span></span></span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Current Employer</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Current_Employer + "</span><br></div></td></tr></tbody></table><div><br></div><div><br></div></div></div><div><br></div>"
]
paste at your deluge
...
2nd
Delugee.....................
rec = zoho.recruit.getRecordById("Candidates",id,"all");
info rec;
// // 62102000000595056
consultant = rec.getJSON("Consultants");
// //=================Basic Info
First_Name = rec.getJSON("First Name");
last = rec.getJSON("Last Name");
Email = rec.getJSON("Email");
status = rec.getJSON("Candidate Status");
phone = rec.getJSON("Mobile");
//=====================Address Information
Street = rec.getJSON("Street");
City = rec.getJSON("City");
State = rec.getJSON("State");
Zip_Code = rec.getJSON("Zip Code");
Country = rec.getJSON("Country");
///Professional Details=====================
Experience = rec.getJSON("Experience in Years");
Highest_Qualification = rec.getJSON("Highest Qualification Held");
Current_Job_Title = rec.getJSON("Current Job Title");
Current_Employer = rec.getJSON("Current Employer");
Expected_Salary = rec.getJSON("Expected Salary");
Current_Salary = rec.getJSON("Current Salary");
Skill_Set = rec.getJSON("Skill Set");
Additional_Info = rec.getJSON("Additional Info");
Skype_ID = rec.getJSON("Skype ID");
// Educational Details=================
Institute_School = rec.getJSON("Institute School");
info Institute_School;
Major_Department = rec.getJSON("Major Department");
Degree = rec.getJSON("Degree");
Duration = rec.getJSON("Duration");
//experience
Occupation_Title = rec.getJSON("Occupation Title");
Company = rec.getJSON("Company");
Summary = rec.getJSON("Summary");
Work_Duration = rec.getJSON("Work Duration");
/// get attch resume
res = invokeurl
[
url :"https://recruit.zoho.in/recruit/v2/Candidates/" + id + "/Attachments"
type :GET
connection:"all"
];
info res;
File_Name = res.getJSON("data");
Attach_id = File_Name.getJSON("id");
Attach = invokeurl
[
url :"https://recruit.zoho.in/recruit/v2/Candidates/" + id + "/Attachments/" + Attach_id
type :GET
connection:"all"
];
info Attach;
sendmail
[
from :zoho.adminuserid
to :consultant
subject :"'New Candidate'"
message :"<div style='text-align: center;' class='align-center'><span class='size' style='font-size:24px'><span class='highlight' style='background-color:rgb(255, 127, 0)'>New Candiate </span> </span> <br></div><div style='text-align: center;' class='align-center'><u><br></u></div><div style='text-align: left;' class='align-left'><span class='size' style='font-size:24px'><span class='highlight' style='background-color:rgb(255, 255, 255)'>Basic Detail </span> </span> <br></div><div><hr><br></div><div style='text-align: left;' class='align-left'><span class='size' style='font-size:18.6667px'><table style='width: 100%; font-size: 10pt; font-family: Arial, Helvetica, sans-serif; border: 2px solid black; color: black;' border='2' cellspacing='2' cellpadding='2'><tbody><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Name </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + First_Name + " " + last + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Email </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Email + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Phone </span> <br></div></td><td style='width: 140.5px;'><span class='size' style='font-size:18.6667px'>" + phone + " </span> <br></td></tr><tr><td style='width: 140.5px;'><div><span class='colour' style='color:rgb(0, 0, 0)'><span class='font' style='font-family:Arial, Helvetica, sans-serif'><span class='size' style='font-size: 18.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none;'>Status </span> </span> </span> <br></div></td><td style='width: 140.5px;'><div><span class='colour' style='color:rgb(0, 0, 0)'><span class='font' style='font-family:Arial, Helvetica, sans-serif'><span class='size' style='font-size: 18.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none;'>" + status + " </span> </span> </span> <br></div></td></tr></tbody></table><div><br></div></span><div><br></div></div><div style='text-align: left;' class='align-left'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='size' style='font-size:24px'>Address Information</span></span><br></div><div><hr><br></div><div class='align-left' style='text-align: left;'><table cellpadding='2' cellspacing='2' border='2' style='width: 100%; font-size: 10pt; font-family: Arial, Helvetica, sans-serif; border: 2px solid black; color: black;'><tbody><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Street </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Street + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>City </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + City + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>State/Proviance </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + State + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>Zip-Code </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Zip_Code + " </span> <br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'><span class='colour' style='color:rgb(0, 0, 0)'>Country </span> </span> </span> </span> </span> </span> <br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Country + " </span> <br></div></td></tr></tbody></table><div><br></div><div><span class='size' style='font-size:18.6667px'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='size' style='font-size:24px'>Professional Information</span></span></span><br></div><div><hr><br></div><div><table cellpadding='2' cellspacing='2' border='2' style='width: 100%; font-size: 10pt; font-family: Arial, Helvetica, sans-serif; border: 2px solid black; color: black;'><tbody><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Experience in Years</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Experience + "</span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Highest Qualification Held</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Highest_Qualification + "</span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Current Job Title</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Current_Job_Title + "</span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Expected Salary</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>" + Expected_Salary + "</span></span></span></span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Skill Set</span></span></span></span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>" + Skill_Set + "</span></span></span></span></span></span></span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Skype ID</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>" + Skype_ID + "</span></span></span></span><br></div></td></tr><tr><td style='width: 140.5px;'><div><span class='highlight' style='background-color:rgb(255, 255, 255)'><span class='colour' style='color:rgb(92, 101, 117)'><span class='font' style='font-family:InterRegular, sans-serif'><span class='size' style='font-size:18.6667px'>Current Employer</span></span></span></span><br></div></td><td style='width: 140.5px;'><div><span class='size' style='font-size:18.6667px'>" + Current_Employer + "</span><br></div></td></tr></tbody></table><div><br></div><div><br></div></div></div><div><br></div>"
Attachments :file:Attach
]
Thankyou for the visit
Comments
Post a Comment