You need to sign in to do that
Don't have an account?
Chad 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
Best,
Chad Davis
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