How to Encrypt Email Field Using Formula In Salesforce?

How to Encrypt Email Field Using Formula In Salesforce?

In this blog, you will learn how you can use a formula field to create a encrypted email field in salesforce.

Follow Below Steps
  • Go to Setup
  • Open Object Manager
  • Click on Account Object (Choose object of your choice)
  • Click on Fields & Relationship Tab
  • Click on New Button
  • Select Formula
  • Provide the Field Name
  • Select Formula Return Type as Text

IF(AND(NOT(ISBLANK(Email)),CONTAINS(Email, '@')),
LPAD(RIGHT(Email, LEN(Email) - FIND('@', Email) + 1), LEN(Email), '*'),'')

  • Click on Check Syntax Button
  • Assign Field Level Security
  • Assign Page Layout
  • Save.

Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0