I have a Salesforce Case <> Salesforce Case Connection and HTML is in comments, how do I remove this?

Hello Exalate team, we have connected our Salesforce Cases to another partner’s Salesforce case. We are receiving their comments with HTML I want to remove this, I tried a variation that I used in JIRA.

entity.comments = nodeHelper.stripHtml.(commentHelper.mergeComments(entity, replica))

However this returns the following error

No such property: stripHtml for class: salesforcenode.services.node.hubobjects.NodeHelper

This is what I use in SFDC <> JIRA connections that works
issue.comments = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

Hi @Jacob_Kalaj ,

I think there is dot (.) after stripHtml which is not needed.

So it would be:

entity.comments = nodeHelper.stripHtml(commentHelper.mergeComments(entity, replica))

Can you please try and let me know ?

1 Like