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
Chad DavisChad Davis 

Transferring Rich Text data to Long Text, Omitting the tags?

Hey I have a trigger that transfers a (long) Rich Text field {parent} to another (long) Rich text field {child}. The problem is that  from here, I need to send this to an outside application that cant handle rich text.  Is there any way, within the trigger, that I can still send the data from one Rich field but somehow keep the formating to the next Static Long text field while importantly leaving out the <html> tags that mess up the document?  I know its a long shot.. Thanks for any help. 

Best, 
Chad Davis
Vinita_SFDCVinita_SFDC
Hello,

Convert your field data to blob and then convert it to String. Now send this long text value.

Refer: https://help.salesforce.com/apex/HTViewSolution?urlname=How-do-you-convert-a-Blob-to-string-1327108626373&language=en_US

http://salesforce.stackexchange.com/questions/15784/converting-long-text-area-to-rich-text-area-does-not-interpret-the-the-html-tags