function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

VisualForce email template for Knowledge Article



I'm a visualforce newbie and I'm trying to create a visualforce email template that will include the content of the knowledge article because our support team needs to be able to edit some of the articles on the fly before they send the answer to the end user.  An example would be some customers use 'cart' and some use 'basket'.  Currently they are able to edit the solution in an email, but we lose that functionality with articles.


I've got the vf email template with the recipienttype=contact and the relatedToType=Case, but I'm stuck on how to relate to the article since {!relatedTo.articletype__kav} was not the answer.


Thanks so much for any insight!


You can include  <apex:component> in the email template and do the custom logic in the controller and display it on your VF tmeplate.


Could you give more detail of how to do tis as I am having the same problem.