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
Categories: CRM
Tags: CrmSvcUtilGenerateOptionSetEnums, enum, optionset
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,484,093 hits
Translate
Categories
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Power Apps | Custom connector | User does not have an entitlement to use PowerApps
- Canvas App -Working with Bing Maps connector
- [Step by Step] Dataverse | Connect Cloud flow with Service Principal (Application User)
- [Step by Step] Power Apps Portal - Configure Global Search
- Associate/Disassociate plugin messages in CRM
- Azure DevOps (ADO) | Pipeline failure | You need the Git 'GenericContribute' permission
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- 'Callback Registration Expander' System Jobs stuck at 'Waiting For Resources'
Recent Posts
- General availability of Power Apps for Windows
- PCF | Using Fluent UI and React | Error during react installation
- Power Platform CLI | Pack and Unpack solution using map xml
- Power Platform CLI | Authenticate environment using device code
- Power Apps Maker Portal | Create tables with Table hub and new designer