x++


AX2012 Sales Order Creation through AX Classes


I want to create a sales order in ax 2012 through x++ code, I searched for it and only found direct header and line creation through creating and inserting table buffers, I want to create sales order through standard AX Class so I dont have to worry for business rules. Like we can create transfer order with AxInventTransferTable and AxinventTransferLine classes.
A simple code example would be much appreciated.
Thanks.
You can have a look at a blog post of a colleague of mine. He has written a post about the SalesAutoCreate framework.
Creating sales order with SalesAutoCreate
It explains nicely how you can extend this framework to add a custom type of sales order import. Also the SalesAutoCreate already contains some business logic for general SalesTable and SalesLine fields.
PS: Another option would be to use the SalesSalesOrderService class and AxSalesTable / AxSalesLine classes. (The equivalent of the AxBc classes you use for your transfer orders)

Related Links

AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly

Categories

HOME
jpa
developer-tools
ng-idle
components
sh
spring-data-redis
frontend
accessibility
p2p
jxl
intercom
do-while
glyphicons
dimensional-modeling
xmonad
lilypond
user-experience
kendo-mobile
aggregation
windows-server-2003
definitelytyped
browser-sync
custom-controls
anki
zend-debugger
paragraph
playstation-portable
linkedhashmap
imx6
python-pptx
graphhopper
node-mssql
jvmti
azure-arm
magento-1.9.3
visa
apriori
glm-math
print-css
wc
stylecop
clarifai
jquery-ui-draggable
hammer.js
activeperl
pair-programming
scalding
truezip
pdf-conversion
lsyncd
objectscript
swingworker
structuremap4
juice-ui
smartfoxserver
myspace
vulcanize
jboss-tools
jclouds
halcon
exim4
custom-errors
java-money
xenomai
mod-proxy
vacuum
apache-spark-1.3
beatsmusic
browserify-shim
sonarqube-5.0
easyrtc
unix-socket
ora-00904
matrix-inverse
vsx
synapse
conditionaltagsupport
ora-06550
bin
gtm-oauth2
rolify
gpars
font-awesome-4.0.0
frameworkelementfactory
mkv
pstack
denied
google-floodlight
umra
unattended-processing
nhprof
cac
ruby-1.8
objective-j
delimited-text
silent
jqueryform
interprocess
web-garden
pos-for-.net
product-management
idatareader

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App