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
GauravKumarGauravKumar 

Email Template Body Edit Problem

Hi,

 

I have create my Send Email Page, on this page i have used select template dropdown and when i select Template then Subject and Body fill automatically in My Email Form Subject and Body Field on the behalf of Selected Template. But when i put any chages in Body Like...

I use "Hello" word in My Selected Template but  I want to change this word from "Dear" in my Email Body. Then It gives Error :

 

 

INVALID_FIELD_WHEN_USING_TEMPLATE, When a template is specified the plain text body, html body and subject may not be specifie

 

 I have used this at this time of Email Send in My Code

 

 

mail.setTemplateId(selectedtemplate); mail.setHTMLBody(Body); mail.setPlainTextBody(Body);

 I want that if i made any changes in my Email Body after selection of Template then those changes are being transfer with Email.

This is possible ?

If Yes then anybody help me ?

 

 

 

VarunCVarunC
any clue .. anyone ?
Chirag MehtaChirag Mehta

Hey folks,

 

Can you please share snippet of code developed by you guys on delivering sendEmail using customised VF page. I am looking forward to re-design existing Salesforce Send Email page completely into VF page.