Comparing HTML fields

BKash
Tera Contributor

Hello, I have to create a report that compares two HTML type field one on the current record and other on the referenced record. Unfortunately, is different from condition is not available for filter for HTML type fields. Can anyone help me with this requirement?

2 REPLIES 2

Ahmmed Ali
Mega Sage

Hello @BKash 

 

HTML field does not provide the same as/different from condition as it will be very difficult to process for large data. You can create a script include and query the table to get required records, do the comparison and the return the sys ids. Then use that script include in condition builder of the report as "sys id is one of javascript: yourScriptIncludeCall()".

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Ankur Bawiskar
Tera Patron
Tera Patron

@BKash 

not a good idea to compare 2 HTML fields.

Data in HTML field is having html tags and might contain some other info such as links, images etc

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader