Authorize Navision Sales Order Line for Nav with C#

abhishekpareekabhishekpareek Member Posts: 150
edited 2010-12-22 in NAV Three Tier
This article demonstrates that how a business process which is running outside Navision ERP can be easily integrate with any of the business processes in Navision. To understand this better, I had used a real time scenario.

Consider a system developed in C# which is having functionality to authorize the Sales Orders Qty. Once the Sales Order is being created in Navision, than from C#, one can do various operations from this article:

View the Sales Order from C#
Authorize the Sales Order qty from C#. This not only authorizes the sales line qty from c# but also runs the business logic residing in Navision while authorizing the Sales order.
After authorizing, one can post the Sales Order from C# for Sales Shipment.
After Sales Shipment, one can also post the Sales order to Sales Invoice.
One can also post the Sales order to Sales Shipment and Sales Invoice simultaneously.
This article not only allows to authorize the Sales order but also update for how much qty it is authorized for. This means that user cannot make shipments and invoices more than authorize qty.
User cannot post the Sales Order till it is authorize by C#
After posting authorized Navision SO line Items one can see the posted shipments and invoice from this “Navision Document Authorization” Add-on.
Now the intelligent people will definitely ask why we are doing sales authorization from C#, rather than doing this, why we cannot customize in Navision only?

To understand this, consider one Scenario i.e.

Client or ISV is having an authorizing application which is having all business logics to authorize the Sales order qty and now client or ISV asked to integrate this functionality with Navision so that we can leverage the functionalities of Authorization application to Navision and vice versa.

We will get the following benefits by using this kind of integration:

If the functionality is already there in one add-on so no need to develop from scratch in Navision and just integrate it with Navision within 8 hrs time.
As the add-on functionality can be developed in .net platform and easily be integrated with Navision 2009 Sp1 thus it will save lot ISV’s time to release the add-on product in the market for Navision.
Rather than investing time on developing functionality which is present in add-on, ISV’s can used that time to add some more features to their Add-on as this will give more added values to their add-on and giving more competitive edge to their rivals.
Consider that client had given us API which is returning the Sales Order numbers, Line numbers, authorize information and authorize qty. Now by using these 5 fields I had developed a connector or adapter which updates the Navision Sales Order through C# and also performed all operations which are defined from step a to h.

This article is developed to help ISV’s, clients and developers to integrate their legacy applications with MS Dynamics Navision.

Find the complete development with source code at the following link :

http://www.codeproject.com/KB/cs/AuthorizeNavSOWithCsharp.aspx

Regards,
Abhishek Pareek
Sign In or Register to comment.