Why does the journal field table saves intercepted text value?

adolfo8911
Tera Contributor

Hi everyone, 

I'm currently working on a Before business rule (insert and update) that intercept values on the Comment and Work_notes fields. It compares them to a regex for NPPI and if it finds a match it will replace that matched value with ****. Currently Im finding that when there is a match the BR does mask the value and replaces it with *** as expected but the activity is also showing the original value (I'm getting two entries). 

I checked the sys_journal_field table and it only shows the record with the ****. Has anyone had a similar request where they needed to mask NPPI on entered comments and work_notes, if so how did you do it?

5 REPLIES 5

@adolfo8911 

did you add log and see?

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