Masking Email and Phone Number in SAGE CRM- Part2

By | September 11, 2018

Customizations in Sage CRM using Client side API has always proved to be easy and time saving. Hide and show of fields on the screen, Adding or removal of buttons etc. are some of the examples of screen customizations using Client side API. Recently, we had explained you about masking Email and Phone number in Sage CRM using Client side API. You can refer below link for the same.

New Stuff: Error exporting reports to excel in CRM part-6

Following the steps given in above link, will mask Email and Phone numbers for all the users in CRM. But what if you need to keep the Email and Phone details visible for specific users, for e.g. the Management users of your company should have access to all the details available in CRM.

Below is the solution for the same. By referring below steps you would be able to applying email and phone details masking for specific users as well.

1. Create a checkbox field in users entity i.e. Email and Phone Masking: (user_emailphonemasking)
2. Add the same field on user summary screen i.e. on UserAdminExtraBox screen

3. Admin user can apply the phone and email masking for respective users by checking this checkbox.
4. Now Go to Administration -> Customization -> Company -> List. From the list,Click on Company grid hyperlink and add the below code in custom content.

function MaskingFieldValue()
var PhoneEmailMasking = new String(CurrentUser.user_emailphonemasking);

var numberIndex=crm.grids().columnIndex(“comp_phonefullnumber”);
var emailIndex=crm.grids().columnIndex(“comp_emailaddress”);
crm.grids().rows().exec(function (index, currentCell)
var Number=new String(this.getCellText(index,numberIndex)); Number=$.trim(Number);
var Email=new String(this.getCellText(index,emailIndex)); Email=$.trim(Email);
//For Phone Masking
var Masking=””;
//For Email Masking
var mEmail=””;
this.rows(emailIndex).setCellHtml(index,emailIndex,mEmail); }

After adding code in Custom Content just clear the browser cache. You will see that Users for whom the checkbox is checked will not be able to see phone and email details, whereas those with checkbox unchecked will be able to able to view the details in CRM.

About Us
Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix has some unique integration solutions for Sage CRM with Sage ERPs (Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100Sage 500 and Sage 300).We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users and Sage PSG worldwide. Greytrix helps in migrating of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature and Sage CRM CTI Framework.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace.

For more information on our integration solutions, please contact us at We will be glad to assist you.