문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top