RequisitionBuffer_Service service = new RequisitionBuffer_Service(); service.UseDefaultCredentials = true; RequisitionBuffer ReqBuffer = new RequisitionBuffer(); ReqBuffer.External_Request_ID = "EXT000001"; ReqBuffer.External_Request_Line_No = 10000; ReqBuffer.IMO_No = "9531662"; ReqBuffer.Port_of_Delivery = "DE HAM"; ReqBuffer.Requested_Receipt_Date = new DateTime(2014, 8, 24); ReqBuffer.Type = Type.Catalog_Service; ReqBuffer.No = "IMPA000101"; ReqBuffer.Description = "ASPARAGUS GREEN FRESH"; ReqBuffer.Quantity = 100; ReqBuffer.Unit_of_Measure_Code = "KGR"; ReqBuffer.Status = Status.Pending; service.Create(ref ReqBuffer);
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
great hint, that works !
I followed your recomendation and used Create only for the initial record creation and then Update to write the record data. All data is now received properly by the NAV record according to the different data types. The modified .NET code piece is attached below.
Thanks for your fast response and the great support. Easy to fix if you know how - I like these resolutions...
Cheers
Andrew