structure should be retained

Athena Mathews
Tera Contributor

Hello, 

we have a functionality where we create incidents from portal (functionality is similar to that of record producers but it is a customized one and it is to be noted that we copy data from certain fields and add the whole data in the description of the incident. some of these fields are html and when we check the incident description, we see some unwanted data like "&#43" etc instead of some symbols. 

I used GlideSPScriptable().stripHTML(current.description.getValue()) in a business rule, with this the symbols appear as symbols and unwanted data is removed but the structure of description is lost. As I mentioned, description field is a combination of some other fields and this data is now unstructured without proper new lines. 

How do I change it so that format is not lost?

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, unfortunately with no clear details of your configuration or data, it is difficult for the community to assess your issue. Perhaps you could update this thread with details of your record producer script, your BR, the initial payload and the result you are getting post data formatting? Plain text\xml would be the best way to share this information, as screenshots\images cannot be properly evaluated.