Archive for August 19, 2014

CRM Optionset Enum generation tool

I recently used CrmSvcUtilGenerateOptionSetEnums tool from CodePlex to generate Enum for my Optionsets.

This tool is helpful, if you have to refer Option set values in your Plug-ins or Custom code.

We just need to run the below command on Console to generate output file

CrmSvcUtil.exe /codecustomization:”GenerateOptionSetEnums.CodeCustomizationService, GenerateOptionSetEnums” /codewriterfilter:”GenerateOptionSetEnums.FilteringService, GenerateOptionSetEnums” /url:http://Server/Organization/XRMServices/2011/Organization.svc /out:Attributes.cs /basetypes:Microsoft.Xrm.Client.CrmEntity

Output file contain generated enum’s per entity as below

Output file

Output file

Target CRM Version in Solutions – CRM 2013 Spring feature

With Spring update we got a new option “Target CRM Version” while exporting the solution.

Available options are 6.1 (default) and 6.0.

Target Solution CRM Version

Target Solution CRM Version

If you choose 6.0, any new capabilities of version 6.1 will not be included in the exported solution and any organizations still using version 6.0 will be able to install the solution.

All the removed or modified components will be listed out in a dialog.

Removed or Modified components

Removed or Modified components

Note – “Target CRM Version” option is unavailable if you export Default solution.

IntroducedVersion Property

  • In CRM 2013, solution component has an IntroducedVersion property.
  • This value captures the current product version number of the solution that the solution component was associated with when it was created.

Refer these links for more info


Categories: CRM 2013 Tags: ,