• Marco Choinière
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies
Hello,

I'm using an html template to reply to emails in salesforce. From what I have learned, when you create an html template and leave the text version blank, salesforce automatically copies the content of the htmlbody to textbody with a certain parsing process to strip the html code. In my template, I use the textbody field of the email message to put the content of the previous email.

The problem is that is a user replies to an email with my template, the text the user has written is stripped of all line feeds / carriage returns that he typed when it's copied to the textbody field. I can't use the htmlbody field in my template because I will have all the html markup as well as the text.

Is there a solution to this ? I'm trying to write a trigger that will copy the htmlbody to a custom field i created to control the parsing process myself but it seems complicated. In visualforce, we can use a "escape" attribute on certain apex tag that seems to do the job really well but I don't know how to use the same function in apex code.

Thanks your help.

Marco
Hello,

I have added a custom button in the case detail view that sets certain fields (like status to closed). I can close this tab also automatically. However, the main service console list doesn't refresh (the case is still on the old status). If I manually refresh the list (hit the refresh button), the updated data displays. How can I automatically refresh the main service console list ? I'm not using a VF page, only a custom button on the case detail view.

Thanks.

Marco.
Hello,

I have added a custom button in the case detail view that sets certain fields (like status to closed). I can close this tab also automatically. However, the main service console list doesn't refresh (the case is still on the old status). If I manually refresh the list (hit the refresh button), the updated data displays. How can I automatically refresh the main service console list ? I'm not using a VF page, only a custom button on the case detail view.

Thanks.

Marco.