Sales

Get Involved. Join the Conversation.

Topic

    Jeevthan J
    Mask custom field values by replacing with "*" or...
    Topic posted August 27, 2019 by Jeevthan JBlue Ribbon: 750+ Points, tagged Configuration, Core SFA, Groovy 
    37 Views, 3 Comments
    Title:
    Mask custom field values by replacing with "*" or "#" for certain roles
    Summary:
    Mask custom field values by replacing with "*" or "#" for certain roles
    Content:

    We want to mask custom field values by replacing with "*" or "#" for sales rep roles. Values to be visible only for Managerial roles

    Version:
    19C

    Comment

     

    • H D Arunkumar

      Hello Jeevthan,

      Currently, this is not available as an option, but Product Enhancement 22180500 has been raised and approved for future releases by Product Management.

      Hope this info helps you.

      Thanks,
      Arun.

    • Fernando Paes

      Hi Jeevthan,

      as a workaround, you can replicate the fields you want to mask as custom formula fields, and create a custom layout for sales reps where you show those formula fields instead.

      The way to mask those fields would be:

      Imagine you want to mask a phone number:

      def vPhoneNumberMasked = ''

      def vPhoneNumber = getAttribute('PhoneNumber API Name') //This is the field you want to mask, for example +44 1111 222333

      if(vPhoneNumber is not null)

      {

         vPhoneNumberMasked  = "***" + right(vPhoneNumber,4)//The phone would looklike -> ***2333

      }

      return vPhoneNumberMasked

       

      Hope it helps