• KIssasian mom
  • -1 Points
  • Member since 2022

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2

I think I've already checked with most of the email template discussions but really haven't found if this can be done.



John is in Service Cloud and is answering a customer through case email. He fills out all the necessary field (From, To, Subject, and Body) and selects a custom HTML/CSS email template.

Now, instead of clicking the button "Send Email", i would create buttons that said "Preview in HTML or "Preview in Text"  so the John can preview all the fields that he filled out into my custom HTML/CSS email template. Preview window with the "Send Button"



Branded email templates throughout org


Before diving into trying to develop this, can anyone tell me if this can be done or not? My thinking is yes and sounds simple. But i think the part of the action triggerring of the new buttons and possibly calling out the new fields to transfer the info to the custom HTML/CSS email template can somewhat be difficult. And not knowing what other hang ups I will face.


I appreicate the feedbacks. Thanks



  • November 07, 2013
  • Like
  • 2

In the following SF class code:


//2. make webservice call to create Rally Attachment

req.setHeader('Authorization', authorizationHeader);

String body;
body = '{"Content":"'+EncodingUtil.base64Encode(att.Body)+'"}';


//send the request
res = http.send(req);
System.debug('***res1: ' + res.getBody());



I am getting the following error on response:


09:49:09.411 (1411487000)|USER_DEBUG|[79]|DEBUG|***res1: <?xml version="1.0" encoding="UTF-8"?>
<CreateResult rallyAPIMajor="1" rallyAPIMinor="26">
<OperationResultError>Cannot parse input stream as XML document: Error on line 1: Content is not allowed in prolog.</OperationResultError>
<Warnings />

Can you please assist me?