Hi, I am a SQL developer and I am tasked with inserting Sales Header and Lines from a SQL database into Navision 2017. It's an in house database that records staff orders on a different server that then needs to be bought into Navision as Sales Header and Lines..
This custom database is written in c# .net
How do I go about this please? Is there any step by step guide that I could follow?
Any help would be appreciated.
Navision 2017 and SQL Server 2016
Harry
0
Answers
You'll bypass all of the business logic and may end up shredding those tables. The correct way to do it (if rapid start isn't an option) is writing to a buffer table and let NAV populate the desired tables itself via job queue reading that buffer table.
How will you calculate those fields which NAV automatically does on OnValidate??
Many Business Process wont be executed if you do it from SQL!!
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Yes this will be the correct way of doing this. You will get many tutorials on this as how to expose NAV service and consume web Service.
In your write the code in a Codeunit and expose it as web-service, check out the parameters as you will have to receive XmlPort as parameter where you have header and line information's!!
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!