Giter Club home page Giter Club logo

Comments (12)

daryllabar avatar daryllabar commented on May 13, 2024

You shouldn't have to manually create them. What version of the Early Bound Generator are you using, and what CRM version are you connecting to?

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on May 13, 2024

Any chance you changed the configuration to be a file per class, and haven't added the optionset classes to your project, or they're a different namespace?

from dlab.xrm.xrmtoolboxtools.

seangwright avatar seangwright commented on May 13, 2024

Here is a screenshot of my config

xrm-entity-generation-config

Here are my versions
XrmToolBox: 1.2016.6.29
DlaB Tools: 1.2016.6.1

I'm connecting to crm.dynamics.com (Update 2016) v8.0.1.116.

So I am using 1 file per class and I have the generated option sets and I added them to my project. I'm using the same namespace for both entities and enums. I don't have errors with any of the other option sets/enums. What would the files be named for those missing enums?

Here is my option set configuration

xrm-option-set-generation-config

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on May 13, 2024

You should have close to 500 files in your Plugins\CrmSvcUtil Ref\OptionSets folder. Is anything listed there?

from dlab.xrm.xrmtoolboxtools.

seangwright avatar seangwright commented on May 13, 2024

Yup, I have 526. I have added the ones I needed to my project.

The interesting thing is I wasn't getting errors until I checked the box to use the Xrm Client so that I could get access to the CrmOrganizationServiceContext and regenerated the entities and crm context. After that the errors for the above mentioned fields showed up (and only for those fields).

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on May 13, 2024

Hmm... wonder if the XRM Client changes the output to put those option sets in the optionset files, rather than including them in the class itself?

from dlab.xrm.xrmtoolboxtools.

seangwright avatar seangwright commented on May 13, 2024

Nope,

I just included every single generated OptionSet file and I still get the errors with the enums for entity state for every single entity.

This isn't an issue with the option sets being in the wrong place, as far as I can tell. It's an issue with them not being generated at all once you select to use the Xrm Client.

from dlab.xrm.xrmtoolboxtools.

larsvliet avatar larsvliet commented on May 13, 2024

I am currently experiencing the same issue as @sgwatgit when the "Use Xrm Client" option is selected. The enum is generated inline (in Account.cs) when the "Use Xrm Client" option is deselected

from dlab.xrm.xrmtoolboxtools.

vladimirkarukes avatar vladimirkarukes commented on May 13, 2024

Great work on the tool, Daryl. I just started to use it yesterday and ran into the same issue as described above, the account state (and other entities' states) are not generated when "Use Xrm Client" option is selected.

from dlab.xrm.xrmtoolboxtools.

JonathanWacks avatar JonathanWacks commented on May 13, 2024

Hi, great tool but I'm also experiencing this issue. Worked fine when I wasn't using Xrm.Client. However, I'd like to take advantage of the implicitly loaded relationships, so I need Xrm.Client, but then I'm getting errors for all the entity state enums.

from dlab.xrm.xrmtoolboxtools.

JonathanWacks avatar JonathanWacks commented on May 13, 2024

I have just tried removing the line #define SKIP_STATE_OPTIONSETS from DLaB.CrmSvcUtilExtensions.OptionSet.CodeWriterFilterService, then rebuilding. This does the job but obviously is a bit of hack - better would be to have a check for whether XrmClient is being used or not.

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on May 13, 2024

@JonathanWacks Sorry it took so long, but this fix has been implemented.

from dlab.xrm.xrmtoolboxtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.