Reputation: 75
i dont know how to update the composite fields like fullname,address in ms crm using c#
if (dataRow[i].ToString() == string.Empty)
{
selectedEntity["fullname"] = null;
}
else
{
selectedEntity["fullname"] = "ms crm";
//error
}
//it is not getting fullname in entity
Upvotes: 1
Views: 1158
Reputation: 5787
You cannot set the values of composite fields directly. You will need to set the underlying fields instead (e.g. setting firstname
and lastname
will change the value of fullname
in a Contact).
The following quote from MSDN explains this (though in the context of scripting on forms):
Upvotes: 4