Contact Us

One of our clients wanted a NetSuite saved search that sends an email notification every time a Bank Details record is created or edited. Some of the fields on this Bank Details record contain sensitive information, such as bank account numbers, which, if unmasked in an email, can pose security risks. Therefore, it is necessary to mask these sensitive values in the saved search results that are emailed.

netsuite old value new value

How to mask the sensitive values

Thankfully, there is a simple way to achieve value masking in a saved search via formulaic results. For this example, the values are from a System Notes saved search with Bank Details record criteria set, but this is broadly applicable to any NetSuite field value that needs to be masked. In the results column, set a Text Formula result with the following:

CASE   WHEN {field} = 'Bank Account Number' OR {field} = 'Branch Number' OR {field} = 'Bank Number'   THEN '*****' || SUBSTR({oldvalue}, -4)   ELSE {oldvalue} END

The {field} value can be replaced with your needs, and more or fewer field name conditions can be set using the OR condition. The function driving the actual value masking is the substring function. First, the mask itself is defined, in this case, asterisks, then the SUBSTR({insert target field here}) applies this to the results.

netsuite columns field record set by role date

The formula can be easily adjusted to meet your needs!

Got stuck on a step in this article?

We like to update our blogs and articles to make sure they help resolve any troubleshooting difficulties you are having. Sometimes, there is a related feature to enable or a field to fill out that we miss during the instructions. If this article didn't resolve the issue, please use the chat and let us know so that we can update this article!

Oracle NetSuite Alliance Partner & Commerce Partner

If you have general questions about SuiteCommerce or more specific questions about how our team can support your business as you implement NetSuite or SuiteCommerce, feel free to contact us anytime. Anchor Group is a certified Oracle NetSuite Alliance Partner and Commerce Partner equipped to handle all kinds of NetSuite and SuiteCommerce projects, large or small!

Horizontal Anchor Group logo orange anchor icon navy Anchor Group text

We are a premium SuiteCommerce agency that creates powerful customer portals. Unlike our competitors, we have already solved your problems.

Tagged with Training