• harika ramisetty 7
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi all,

I have a requirement in VF email templae, I need to display subject based on condition as below.
<messaging:emailTemplate subject="{!IF((relatedTo.AppointmentType == 'care' || relatedTo.AppointmentType == 'service' ),'Appointment Confirmation # '+relatedTo.AppointmentNumber +' at '+relatedTo.ServiceTerritory.Name,'Appointment Confirmation # '+relatedTo.AppointmentNumber)}" recipientType="User" relatedToType="ServiceAppointment" renderUsingSystemContextWithoutSharing="True">
<messaging:htmlEmailBody >

for true condition also , when appointmenttype=service/care ,
Subject :Appointment Confirmation # SA-0586 ->false value is displaying everytime for both true and false scenarios

Can anyone help me in resolving the issue.

Thanks in advance
Hi all,

I have a requirement in VF email templae, I need to display subject based on condition as below.
<messaging:emailTemplate subject="{!IF((relatedTo.AppointmentType == 'care' || relatedTo.AppointmentType == 'service' ),'Appointment Confirmation # '+relatedTo.AppointmentNumber +' at '+relatedTo.ServiceTerritory.Name,'Appointment Confirmation # '+relatedTo.AppointmentNumber)}" recipientType="User" relatedToType="ServiceAppointment" renderUsingSystemContextWithoutSharing="True">
<messaging:htmlEmailBody >

for true condition also , when appointmenttype=service/care ,
Subject :Appointment Confirmation # SA-0586 ->false value is displaying everytime for both true and false scenarios

Can anyone help me in resolving the issue.

Thanks in advance