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
Advertisement
Categories: CRM
Tags: CrmSvcUtilGenerateOptionSetEnums, enum, optionset
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,609,684 hits
Join 409 other subscribers
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Step by Step] Power Apps | Show pop ups in Canvas App
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [Step by Step] Power Apps Portal - Configure Global Search
- Associate/Disassociate plugin messages in CRM
- Set “Created On”,” Created By”, “Modified On”, “Modified By” fields using SDK/Data Import/Plug-in – Dynamics 365
- [Step by Step] Model-driven apps | In-app notifications
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- [Step by Step] Dataverse | Plugins | Using Dependent Assemblies
- [Step by Step] Using TypeScript in Dynamics 365 9.x