My bad.Turned out the crm web service needs to be updated after new attributes has been published.
P/S: Appreciate the response.
سؤال
I have added few fields into crm entity. Its fine whenever I save/update a record from the CRM form. However updating or saving the record using the web service does not populating the newly added fields.
Any thoughts? My code goes something like this:
CrmService service = GetCrmService();
salesorder so = new salesorder();
so.newfield =CrmTypes.CreateCrmMoney(somevalue);
..
..
..
service.Create(so);
The rest of the fields get updated/saved.But the 'newfield' is not getting any value.
المحلول
My bad.Turned out the crm web service needs to be updated after new attributes has been published.
P/S: Appreciate the response.
نصائح أخرى
You have a valid value in somevalue? You can try put something like that:
CrmTypes.CreateCrmMoney((decimal)5.00);
Be careful with the configuration of this field, precision and max\min value.
Another thing you can check is the trace, if it's launch any exception.