Monthly Archives: June 2016

Restrict Lookup Types for Regarding Lookup on Activities


With the following couple of lines of code, we can easily restrict the Lookup Types in Lookup Dialog. var regarding = Xrm.Page.getAttribute(“regardingobjectid”); regarding.setLookupTypes([“account”,”contact”]); Advertisements

Posted in CRM, Java Script, Ms Dynamics CRM 2013, MS Dynamics CRM 2015, MS Dynamics CRM 2016 | Tagged , , , , , , , , , , , , , , , | 2 Comments

Command for Generating Optionsets


Command for generating Optionsets: CrmSvcUtil.exe ^ /codewriterfilter:”Microsoft.Crm.Sdk.Samples.FilteringService, GeneratePicklistEnums” ^ /codecustomization:”Microsoft.Crm.Sdk.Samples.CodeCustomizationService, GeneratePicklistEnums” ^ /namingservice:”Microsoft.Crm.Sdk.Samples.NamingService, GeneratePicklistEnums” ^ /url:http://<domain name>/XRMServices/2011/Organization.svc ^ /username:<user name> ^ /password:<Password>^ /out:OptionSets.cs

Posted in CRM, Ms Dynamics CRM 2013, MS Dynamics CRM 2015, MS Dynamics CRM 2016 | Leave a comment