Tried below template in subject line #set($year = $spTools.formatDate($certification.expiration, "yyyy"))#set($dueDate = $spTools.formatDate($certification.expiration, "MM/dd/yyyy"))#set($Integer = 0)#set($quarter = ($Integer.parseInt($spTools.formatDate($certification.expiration, "MM")) + 0)/3 + 1) Action Required: $spTools.formatDate($certification.expiration, "yyyy") [0$quarter] Access Review Assigned to You – Due $spTools.formatDate($certification.expiration, "MM/dd/yyyy")
Also tried to define a variable and reuse it like below, but no email was sent #set($expiry = $certification.expiration) #set($year = $spTools.formatDate($expiry, "yyyy"))$year
What errors did you face (share screenshots)?
Not able to save the email template.
Seems like the length is beyond the limit as I was able to save with part of the template
Email not sent
What is the result you are getting and what were you expecting?
Would like to send email with subject line containing calculated values based on the template above
Thanks @sidharth_tarlapally
Still cannot save the template with entire template. However, can save with subject as below: #set($month = $numberTool.toNumber($spTools.formatDate($certification.expiration, "MM")))#set($quarter = $mathTool.toInteger(($month - 1) / 3 + 1))Action Required: $spTools.formatDate($certification.expiration, "yyyy") [Q$quarter] Access Review Assigned
If any characters added to above string, email template fails to save
Can you simplify the subject and have the current intened subject in the body as heading line ? As I see no other option and shifting to workflows is additional job .