Skip to main content

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



1st attchment is null
2nd attchment in not null






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 + "&nbsp;" + 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 + "&nbsp;" + 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

Popular posts from this blog

How to convert Url to Imege/File By Deluge for Creator || Using the Upload Api || How to upload Imege in zoho creator from crm

This code snippet appears to be part of a script or program that involves invoking URLs to handle file uploads. Let's break it down: 1 Invoke the URL to retrieve a file ( Logo ) : Logo is the url of Imege like Logo =" https://images.pexels.com/photos/674010/pexels-photo-674010.jpeg" response = invokeurl [ url :Logo type :GET ]; Here, the code is making a GET request to a URL stored in a variable named Logo . This request likely retrieves some file data. 2. Setting parameters : response.setParamName("file"); This line sets a parameter named "file" in the response obtained from the previous request. It prepares the response to be sent as a file in a subsequent request. Logo_imge = invokeurl [ url :"https://creator.zoho.com/api/v2.1/clientnamexxxxx/appnamexxxx/report/demo_report/" + CreatorID + "/Logo/upload" type :POST files:response connection:"creator" ]; 4. Logging info "Logo_imge==" + Logo_imge; This p...

Creator 's Html snippet with EJS tag

  An Introduction to EJS: The Embedded JavaScript Templating Engine When it comes to creating dynamic web applications, rendering HTML pages with server-side data is an essential task. Many developers turn to templating engines to simplify this process, and one of the most popular choices is EJS (Embedded JavaScript) . If you're unfamiliar with EJS or are considering it for your next project, this blog will provide a comprehensive introduction to its benefits, features, and how to get started with it. What is EJS? EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. The main goal of EJS is to make it easier to embed JavaScript code directly into your HTML templates. It allows you to add dynamic content, use logic like conditionals and loops, and even include reusable components. EJS is commonly used in Node.js applications for rendering server-side views, and it integrates seamlessly with Express.js, one of the most popular web frameworks fo...

How to Add Multiple Portal By Deluge ||How How to add Different Portal Permission Set

Creating a portal to assign users to specific profiles using Deluge scripting in Zoho Creator can streamline your application’s user management. In this context, the code snippet provided assigns a user to the "Customer" profile based on their email and enables their portal access. Here's a breakdown and explanation: ### Code Explanation: 1. **Assign User to Profile:**    ```deluge    portal = thisapp.portal.assignUserInProfile(input.Email, "Customer");    ```    This line assigns the user, identified by their email, to the "Customer" profile. The `assignUserInProfile` function is a method in the Deluge scripting language that allows developers to specify which profile a user belongs to within the application. 2. **Enable Portal Access:**    ```deluge    input.Portal_Status = "Enabled";    ```    This line updates the `Portal_Status` field to "Enabled," indicating that the user now has access to the portal. ...