locked
generating picklist and status enum with or without crmsvcutil RRS feed

  • Question

  • Hi All,

    So, it appears that crmsvcutil does not generate enums for picklists or statuses or anything other than state.

    I.e. AccountType does not have an enum but AccountState does.

    In our code we have a bunch of magic numbers floating around, I would to convert them to enums like the example below.

    Is there any native way to get this from crmsvcutil?

    I know I can extend stuff from the SDK but we're in a time crunch and can't spend the time to create the tools to allow us to work efficiently.

    Thanks,

    Jon

    OptionSetValue entity_state = new OptionSetValue((int)ct_entityState.Inactive); //
    OptionSetValue entity_status = new OptionSetValue(2);
    Thursday, October 20, 2011 9:21 PM

Answers

All replies