Tuesday, June 1, 2010

Setting Crm 4.0 object attributes to null

Just got a call from a client on how to do this. CRM 4.0 attributes need to have to properties set:
  1. IsNull
  2. IsNullSpecified

CrmDateTime dt = new CrmDateTime();
dt.IsNull = true;
dt.IsNullSpecified = true;
CrmMoney cm = new CrmMoney();
cm.IsNull = true;
cm.IsNullSpecified = true;

Happy coding...

No comments:

Post a Comment