Comments (12)
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.
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.
Here is a screenshot of my 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
from dlab.xrm.xrmtoolboxtools.
You should have close to 500 files in your Plugins\CrmSvcUtil Ref\OptionSets
folder. Is anything listed there?
from dlab.xrm.xrmtoolboxtools.
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.
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.
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.
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.
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.
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.
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.
@JonathanWacks Sorry it took so long, but this fix has been implemented.
from dlab.xrm.xrmtoolboxtools.
Related Issues (20)
- Allow to override Entity Names
- Add a default Messages Whitelist
- State Name is incorrect when using Entity Class Name Overrides
- 'Upgraded' v1settings files are missing some options in v2 HOT 3
- Cannot implicitly convert type ...StatusCode to 'Microsoft.Xrm.Sdk.OptionSetValue' HOT 3
- Fix Ordering of local Enums
- Error with StateCode when overriding EntityName
- Alternate Keys aren't ordered
- Allow for Enum Name Replacement strings
- Add a Search Box for the Properties Grid
- Connection Record1ObjectTypeCode and Connection_Record2ObjectTypeCode Are noisy between Environments HOT 2
- Seeing default settings helps us rookies HOT 2
- "_" underscore is removed from OptionSet Names? HOT 2
- Early Bound Generator V2 - Error generating classes HOT 9
- Connection_Record1ObjectTypeCode is missing in optionsets.cs since version V2.2023.12.22 HOT 3
- Virtual Attributes with Make all fields Editable Creates invalid setters
- Getting error in Visual Studio Solution Accelerator while adding libraries to solution HOT 6
- Naming Entity File HOT 4
- [QUESTION] - Is it possible to change a specific setting for a Column? HOT 2
- DLaB.XRM.Source missing some abstract methods in 3.1.X and 4.1.X
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dlab.xrm.xrmtoolboxtools.