Showing posts with label CRM 2013. Show all posts
Showing posts with label CRM 2013. Show all posts

Thursday, 14 May 2015

Disable CRM 2013 Welcome Screen

Hi,

Recently when I was working with one of the customers who is using CRM 2013 complained that they were getting the Welcome Screen even thought they have selected "Don't ask me again" check box.


Here is the solution for it

  1. Logon to CRM App Server and run "Regedit.exe" as an administrator.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRMAdd  and right click to new 32 Bit DWord.
  3. Name the new Dword: DisableNavTour
  4. Set the Data Value to 1
  5. Reset your IIS.
Hope this helps

--
Happy CRM'ing
Gopinath.

Friday, 3 April 2015

Customize PartyList in CRM 2013 and 2015

We used to customize partylist in CRM 2011 by using the following code.

lookuptypeIcons = '/_imgs/ico_16_2.gif:/_imgs/ico_16_8.gif';
lookuptypenames = 'contact:2:Contact,systemuser:8:User';
lookuptypes = '2,8';
if (crmForm.all.to != null) {
       crmForm.all.to.setAttribute("defaulttype", "2");
       crmForm.all.to.setAttribute("lookuptypes", lookuptypes);
       crmForm.all.to.setAttribute("lookuptypenames", lookuptypenames);
       crmForm.all.to.setAttribute("lookuptypeIcons", lookuptypeIcons);
       Xrm.Page.getControl("to").setDefaultView("A2D479C5-53E3-4C69-ADDD-802327E67A0D"); //GUId for  default View 
}

This code won't work in CRM 2013 and 2015 but we can achieve same functionality by write the code on the focus of the field


$("#to").focus(function () {
    var toLookUp = $("img[attrName='to']");
    var lookuptypeIcons = '/_imgs/ico_16_2.gif?ver=828891367:/_imgs/ico_16_8.gif??ver=828891367';
  var lookuptypenames = 'contact:2:Contact,systemuser:8:User';
    lookuptypes = '2,8';
    if (toLookUp.length > 0) {
        toLookUp[0].setAttribute("lookuptypenames", "contact:2:Individual,systemuser:8:User");
        toLookUp[0].setAttribute("lookuptypes", "2,8");
        toLookUp[0].setAttribute("lookuptypeIcons", lookuptypeIcons);
        toLookUp[0].setAttribute("createpermissiondictionary", "contact:true,systemuser:true");
        toLookUp[0].setAttribute("DefaultViewId", "A2D479C5-53E3-4C69-ADDD-802327E67A0D");
        toLookUp[0].setAttribute("defaulttype", 2);
    }
});


--
Happy CRM'img
Gopinath