Could you help me?
I want to add the "Number_Day_Requested" on request to "VACATIONS_YEAR" at Employee_Information after to sendmail.
if(input.Status == "Approved")
{
sendmail
[
from :zoho.adminuserid
to :Employee_Information[ID == input.Employee].EMAIL
subject :"Your request has been approved"
message :"Congratulations!<div><br></div><div>Your request for time off from " + input.Begging_on + " to " + input.Ending_on + " has been approved.</div>"
content type :HTML
]
/*
I want to add this after send EMAIL - But I always get a Error!
Employee_Information[ID == request.Employee].VACATIONS_YEAR = Employee_Information[ID == request.Employee].VACATIONS_YEAR + Number_Days_Requested[input.Employee=Employee_Information[ID == request.Employee].ID].Number_Days_Requested;
*/
}
if(input.Status == "Rejected")
{
sendmail
[
from :zoho.adminuserid
to :Employee_Information[ID == input.Employee].EMAIL
subject :"Your request has been rejected"
message :"Sorry!<div><br></div><div>Your request for time off from " + input.Begging_on + " to " + input.Ending_on + " has been rejected. For more information, please contac your Manager.</div>"
content type :HTML
]
}