Question

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.

Was it helpful?

Solution

My bad.Turned out the crm web service needs to be updated after new attributes has been published.

P/S: Appreciate the response.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top