Hello
I would like to know how to save Customer comments on Sales Order page with text send with Nav services from C# code.
//Morten
*This post is locked for comments
Hello
I would like to know how to save Customer comments on Sales Order page with text send with Nav services from C# code.
//Morten
*This post is locked for comments
Yes, this field is not on the page by default. You first need to add this field on the page (this field exist in the table). After that, everything will be fine.
Thanks.. But I don't know where to set the document type to order in the web service call.. The comment sheet object in C# don't have a document type property :/
You can use one of the document types: Quote,Order,Invoice,Credit Memo,Blanket Order,Return Order,Shipment,Posted Invoice,Posted Credit Memo,Posted Return Receipt.
You need to use Order for Sales Order.
My c# code:
commentSheet1 comment = new commentSheet1();
comment.Date = head.OrderDate;
comment.Comment = head.CustomerComments;
commentSheetService.Create(ref comment);
I am using page 67 and have publish it. When I run my code and call the service the comment ends in the 'Sales Comment Line' table. But with a wrong document type (8)
You need to open Web Services page and publish this page (page 67).
Yes i'm using web services for this integration. What does it means to publish Sales Comment Sheet.. I dont have a service call names like that?
I suppose, you are using web services for this integration. You can use 'Sales Comment Line' table as destination for all comments. You need to publish Sales Comment Sheet.
Hi,
The below link will give you a highlight on how to use the C# and inserting into Sales Order. You may use the same concept and insert the comments too.
blogs.msdn.com/.../extending-page-web-services-and-creating-a-sales-order-again.aspx
Best Regards,
MMV
André Arnaud de Cal... 291,711 Super User 2024 Season 2
Martin Dráb 230,458 Most Valuable Professional
nmaenpaa 101,156