Respected Members i have one issue hope you will help me.
i have nav 2017 and i integrated with NopCommerce through web service every thing is perfect Now my Point is that i want when i enter a new order or item that item or order will save in nav DB and also store in a NopCommerce Data Base how to do this need urgent help.
Thanks in advance.
*This post is locked for comments
please follow
msdn.microsoft.com/.../dd355398(v=nav.90).aspx
msdn.microsoft.com/.../dd355316(v=nav.90).aspx
msdn.microsoft.com/.../dd301179(v=nav.90).aspx
my postings on moxie4nav
https://moxie4nav.wordpress.com/2015/09/10/call-external-web-service-using-new-cu-1290/
https://moxie4nav.wordpress.com/2016/07/03/call-external-web-service-using-cu-1290-part-2/
still stuck not solved
If this is the scenario, from NopCommerce you need to call the NAV SalesOrder page that you've exposed as web service.
As an example, I report here a piece of code that comes from my book "Building ERP solutions with Microsoft Dynamics NAV". You retrieve all the orders based on the filters you want and save them on NopCommerce:
private static void ReadNAVSalesOrders()
{
//Here we have to call our NAV web service for reading Sales Orders
//Web Service instantiation
SalesOrder_Service ws = new SalesOrder_Service();
ws.Url = Properties.Settings.Default.NAVWSURL;
ws.UseDefaultCredentials = true;
//Setting filters on the table
List<SalesOrder_Filter> filterArray = new List<SalesOrder_Filter>();
SalesOrder_Filter filter = new SalesOrder_Filter();
filter.Field = SalesOrder_Fields.Sell_to_Customer_No;
filter.Criteria = "10000";
filterArray.Add(filter);
//Reading sales orders
List<SalesOrder> orderList = ws.ReadMultiple(filterArray.ToArray(), null, 0).ToList();
//Printing the results
if (orderList!=null)
{
foreach(SalesOrder order in orderList)
{
Console.WriteLine("Order No.: " + order.No);
Console.WriteLine("Order Date: " + order.Order_Date);
Console.WriteLine("----------------");
}
//Waiting user input to terminate
Console.ReadKey();
}
}
i have NAV object exposed as a web service to NopCommerce.
It's not clear what's your architecture here.
1) Do you have NAV objects exposed as web services to NopCommerce or do you have NopCommerce that exposes WS to NAV?
2) Do you enter the order inNAV and you want to pass it to NopCommerce? If so, after inserting the order in NAV you have to call a WS from NopCommerce (if it has it) or from NopCommerce you have to call the Sales Order Page object from NAV that you need to publish as web service.
not found on mox4nav.WordPress.com.
can you please add proper links ?
You''ll find according Postings on mox4nav.WordPress.com.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156