Cialis online Cialis online

Feb 20 2008

Why aren’t my custom attributes and custom entities showing up in my intellisense?

Published by Phil at 12:30 pm under crmsdk, gotchas, lunch break epiphanies

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.

Update Web References

To do this:

  1. Go to the Solution Explorer in Visual Studio and expand your project.
  2. 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?”

  1. mariqon 06 Apr 2010 at 11:28 pm

    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

  2. Philon 07 Apr 2010 at 9:44 am

    Mariq,

    Do you have the organizaiton name at the end of your webservice url? What version of Visual Studio are you using?

    Best,
    Phil

  3. Chuckon 07 May 2010 at 11:19 am

    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.

Trackback URI | Comments RSS | del.icio.us | Digg it | Furl | iFeedReaders | Wykop

Leave a Reply