Set the default lookup entity in ms crm 2013(In Case customer Lookup )
i tried the below code but its not working
document.getElementById('customerid').setAttribute('defaulttype', '2');Xrm.Page.getControl('customerid').setDefaultView('A2D479C5-53E3-4C69-ADDD-802327E67A0D');
ms crm