Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 71679

Forum Post: RE: Syntax Problems with C# Plugin Code

$
0
0
@Jim - That's progress. If you use the method GetAttributeValue<> and the attribute doens't have a value then the result will be null. If you try to combine null fields then you'll get the null reference exception. It's a little tedious, but update the code so those methods like this: string LicenseLType = new_s_licenseinformation.Contains("new_licensenumbgtype") ? new_s_licenseinformation["new_licensenumbgtype"].ToString() : String.Empty; This will ensure that the LicenseLType field has a value, even if its a blank value. Thanks, Aiden

Viewing all articles
Browse latest Browse all 71679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>