IBM Support

Email: Removing RichText From the CommLog Message Field

Technical Blog Post


Abstract

Email: Removing RichText From the CommLog Message Field

Body

You want the CommLog message field to not contain any RichText formatting whatsoever.  Never mind why, that's your business!  It may be that you want to pull this content and use it elsewhere where rich text may cause problems, such as in a report.

 

Screenshot-fest to follow on how to accomplish this with a CommLog Object Launch Point script:

 

 

The scripting portion will called a system UI framework method to purge the rich text from the field leaving plain text behind:

 

from psdi.util import HTML
MSG = HTML.toPlainText(MSG
)

 

image

 

 

 

 

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11132377