crm2011 generated class enitity within plugin bringing null value for certain properties- help RRS feed

  • Question

  • Hi,

    I am using the generated classes within a plugin. In some weird cases, the field containing data (verified in db, regular view, filtered view) in the database brings null value. I have regenerated the classes, iisreset, restarted the server, created new org with same results. I would appreciate if anyone can provide any guidance to further debug the issue.

    Let me know if you have further questions.


    Sunday, January 19, 2014 5:17 PM

All replies

  • Depending on the message you are intercepting and stage only some properties will be there. You might be able to define a pre- or post- image or may have to retrieve the properties explicitly within the plugin.
    Sunday, January 19, 2014 7:01 PM
  • Chris,

    Thanks for the reply. Actually I am not talking about the input or output parameters in the context but I am calling another entity on a certain guid value and and the data for certain columns is being returned as null even though there is data in the columns in the database. Here is the code that I am calling:

    int providerType = (from c in iBudget.APD_providerSet where c.APD_providerId.Value == providerId select c).FirstOrDefault().apd_ProviderTypeCode.Value;

    This piece of code was working until a week ago and now it's broken.


    • Edited by coolbuddy_27 Thursday, January 23, 2014 12:49 PM code format
    Thursday, January 23, 2014 12:47 PM