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
Hi @Sonal_Otwani
I am getting an error after adopting the script
Error Type:
Incoming script error
Error Creation Time:
Jun 16, 2025 15:01:07
Error Detail Message:
No signature of method: salesforcenode.services.node.hubobjects.NodeHelper.stripHtml() is applicable for argument types: (ArrayList) values: [[BasicHubComment{, @id=0D5PH00000lMs0L0AS
, @remoteId=null
, @author={ @key : 0053h000005Q3fTAAS}
, @created=Mon Apr 14 00:00:00 UTC 2025
, @updateAuthor=null
, @updated=null
, @group=null
, @role=null
, @internal= false
, @executor= null
}, …]] Possible solutions: stripHtml(java.lang.String)
Error line: 9
This is retrieving the below error when trying to save the script
this is because you copy it and there seems to be issue with community formatting, can you remove that arrow character and put → ( i mean dash and greater than without any space)
Thank you @Sonal_Otwani I have successfully saved the changes as below. Will let you know on the next comment sync if we see clean comments!
Thanks for the confirmation and will wait for your next update.