How to automatically import Sales from another Software

Shpetim
Member Posts: 4
in SQL General
Hello community fellas ... I am currently using a Rapidstart services to import sales from another software but now im trying to make an middle software for this regard... I have analyzied tables and columns but i need expert help if possible.
Can some help me in this regard. I need to know which tables do i need to insert in and in what order?
I have tried to insert data directly to SalesHeader but impossible i am receiving datatype conversion errors all the time even though i have tried any possible form ... I am also receiving the same error when trying to update especially Datetime fields!
I need to do this because i have to import them daily
Can some help me in this regard. I need to know which tables do i need to insert in and in what order?
I have tried to insert data directly to SalesHeader but impossible i am receiving datatype conversion errors all the time even though i have tried any possible form ... I am also receiving the same error when trying to update especially Datetime fields!
I need to do this because i have to import them daily
0
Answers
-
It is a really bad idea to create sales orders using SQL.
You should use one of the following methods:
xmlports - can be imported directly in NAV or via web services
pages via web services - more code and better for low-volume
sql to staging tables - then a codeunit to process the tables and create the sales orders with full validation - which will create the complementary tables if you do it correctly. I have used this method in a high volume environment - tens of thousands of orders per day coming from other web sites.
NAV uses the datetime field in SQL for both date and datetime. When it is a date in NAV, the time needs to be zero unless it is a closing date (time is 23:59:59)
David Machanick
http://mibuso.com/blogs/davidmachanick/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions