You need to sign in to do that
Don't have an account?

Problem passing HTML text to Rich Text Field using Apex
Hey everyone,
I currently set up an integration with VSTS and I have been having issues passing basic HTML to a Salesforce Rich Text field and I was hoping to be pushed in the right direction.
According to this document I believe basic tags like <b>, <u>, and <i> should be able to be passed in but I cannot get it to work for the life of me. Is there anything that should be done?
This is the String value that I am attempting to pass into my Rich Text Field:
I currently set up an integration with VSTS and I have been having issues passing basic HTML to a Salesforce Rich Text field and I was hoping to be pushed in the right direction.
According to this document I believe basic tags like <b>, <u>, and <i> should be able to be passed in but I cannot get it to work for the life of me. Is there anything that should be done?
This is the String value that I am attempting to pass into my Rich Text Field:
'This is a test. <b>BOLD </b><i>Italicized</i><u>Underlined</u> This was a test.'
Below is working for me. Please try like below.
RechTextbox= VarName+ '<b>' + Var2+ '</b>:<br/> ' + Var3 + Var4;
I am trying to build this:
If I pass that into my Rich Text field like this...it works...
BUT if I try to pass it in like this where the line above is within a map...it does not work....
Do you know any reason why it might be behaving in this manner? I don't see why it is any different, I am passing the same exact value at the end of the day.
I found similar solution here
RICH Text Area HTML (https://salesforcetrail.blogspot.com/2020/04/insert-formatted-datahtml-in-rich-text.html)