Feb 20 2008
Why aren’t my custom attributes and custom entities showing up in my intellisense?
A quick lunch break “gotcha” post before I forget:
Have you ever tried to create a new instance of a crm entity via the SDK only to find that none of your custom attributes (or custom entities for that matter) are showing up in your intellisense? What’s worse, you get a compiler error when try to build because your “new_” prefixed attribute isn’t a recognized member of the class (something like: ’<CrmSdk>.<entity>’ does not contain a definition for ‘new_<custom_attribute>’)?
Well, if you added the web reference to the SDK before you added/published your customizations in CRM, you’ll need to “Update Web References” in Visual Studio before it will compile.

To do this:
- Go to the Solution Explorer in Visual Studio and expand your project.
- Right-click your “App_WebReferences” or your specific web reference to the CRM SDK and select “Update Web References.”
-p
3 Responses to “Why aren’t my custom attributes and custom entities showing up in my intellisense?”
Trackback URI | Comments RSS | del.icio.us | Digg it | Furl | iFeedReaders | Wykop
Hi,
Thanks for the post, it was very helpful, but i have a question.
I`ve published my customizations in CRM 4.0, updated the Web reference in my project, but still couldn`t find my custom attributes (there are some, but not the ones, made after adding the crm web reference)
This is happening even though i`ve updeted the web reference.
Do you have any idea what else could be the problem.
Cheers,
Mariq
Mariq,
Do you have the organizaiton name at the end of your webservice url? What version of Visual Studio are you using?
Best,
Phil
THis was driving me crazy, I would think that load the page would reload the custom attributes. I was using a proxy dll so I had to recompile it for my new fields to be seen.