Sales invoice header and sales invoice lines creation via web services?

benjasik
Member Posts: 9
I want to create a sales invoice through the api and I'm wondering the best way to do this
Do I need to create a sales invoice header first, and then insert sales invoice lines parented to the sales invoice header that I insert or is there a way to do this as a single web service api transaction?
This is for business central 17 on premise wave 2
Thanks in advance.
Do I need to create a sales invoice header first, and then insert sales invoice lines parented to the sales invoice header that I insert or is there a way to do this as a single web service api transaction?
This is for business central 17 on premise wave 2
Thanks in advance.
0
Answers
-
create a function in codeunit with a parameter for xml
xml will create the sales order (xml.import)
publish the codeunit, call the function using soap api with xmlAjay Jain
UK0 -
thanks, let me know if you can point me to any examples/tutorials on this!0
-
See if this Helps
https://forum.mibuso.com/discussion/68211/create-sales-header-line-using-webservices-nav-2016Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Don't import straight into the Sales Invoice Header and Line tables, those are the posted documents and those should only be created by the posting routines. Create an unposted invoice and post that to have BC create all the necessary entries.0
-
how do I create an unposted invoice and then post it to have BC create all the necessary entries?0
-
[Topic moved from 'Design Patterns' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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