Remove account or contact from customer lookup in Dynamics CRM

Microsoft Dynamics CRM 2015/2016 has a special type of lookup called customer lookup which can store both account and contact. Sometimes we are required to store either account or contact instead of both. Luckily we can do this! The SDK provides this methods called addPreSearch through this method we can achieve this behavior! addPreSearch Xrm.Page.getControl(arg).addPreSearch(handler) …

Read more