Hi
Can anyone tell me how to create the key in the Sales)order.Create?
*This post is locked for comments
Hi
Can anyone tell me how to create the key in the Sales)order.Create?
*This post is locked for comments
Guys thanks for the great help and quick response.
As I thought. Guys, thank you for everything and the quick response. Jonathan and Vishal, you were great help.
This is basically the Table Index (Key). This normally helps, when you want to read the data with proper key defined.
When you keep it blank, system will have use default key.
To Confirm
When creating a new sales order, I do not need to specify the key or the url? The url I understand as it is already defined. But what is the purpose of the Key then? Just for Read? Or only for internal system use?
remove the lines
salesOrderService.Url = "..../Integration_Sales_Order";
salesOrder.Key = "";
set a correct value for salesOrder.Sell_to_Customer_No.
using Integration_Sales_Order;
....
Integration_Sales_Order.Integration_Sales_Order_Service salesOrderService = new Integration_Sales_Order.Integration_Sales_Order_Service();
Integration_Sales_Order.Integration_Sales_Order salesOrder = new Integration_Sales_Order.Integration_Sales_Order();
salesOrderService.Url = "..../Integration_Sales_Order";
salesOrderService.UseDefaultCredentials = true;
salesOrderService.Create(ref salesOrder);
salesOrder.Sell_to_Customer_No = ....;
salesOrder.Key = "";
salesOrderService.Update(ref salesOrder);
I am busy creating a Sales_Order in NAV 2015. I use the web service (Integration_Sales_Order.Integration_Sales_Order_Service) using the Create Method. When I populate the Class I leave out the Integration_Sales_Order.Integration_Sales_Order.Key.
This is now returning an error "Key "" is not well formed!". I need to find out what should go into the Key value before I Update the Sales_Order (salesOrderService.Update(ref salesOrder))
Does this make sense? I am doing the Dynamics web service for the first time. I have added the web reference to my project C#.
Which key? What is the exact requirement?
Sorry. Sales.Order and not Sales)order. Finger problems
André Arnaud de Cal...
292,865
Super User 2025 Season 1
Martin Dráb
231,723
Most Valuable Professional
nmaenpaa
101,156
Moderator