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

Table query inconsistent
AX2012 Sales Order Creation through AX Classes
How can I loop over Tables which contain specific characters in their AOT name and delete the data?
Having button that runs code, but doesn't submit data to (or validates against) table
Where are Duties (table name) stored in AX?
Advanced query range
How to read from an Excel file?
group by clause in X++
Determine the number of affected rows by an update_recordset call in Dynamics 4.0?
how to protect the x++ source code
About Data Dictionary
setTimeOut and local function
Passing FromControl in a lookup override method
Reference control from datamethod in generated design
Extended EDT does not compare dates
How to display a tooltip in Dynamics AX 4.0?

Categories

HOME
kentico
css3
gpu
redux-form
jmx
limit
settings
data-visualization
project
reactive-programming
distribution
jxl
jsonpath
automatic-ref-counting
coin3d
firefox-addon
intershop
systemtime
dapper-extensions
google-cast
gitlab-api
android-maps-extensions
sharding
latitude-longitude
reason
protein-database
setup.py
xv6
softmax
print-css
plr
contract
signal-strength
pom.xml
proget
clarifai
bluez
lightning
context-switch
subnet
baidu
change-tracking
custom-lists
envi
tinkerpop3
macaulay2
hclust
aurora
phpwebsocket
false-sharing
spring-retry
custom-errors
qt5.2
jdi
xvim
zen-cart
rdflib
liquid-layout
snackbar
node-serialport
packet-sniffers
angular-carousel
ss7
grails-domain-class
jjaql
bin
scrypt
oocss
gpars
scmmanager
booksleeve
redis-py
uimanageddocument
mapping-by-code
usertype
mysql-error-1205
entitydatasource
drawtobitmap
creole
http-daemon
socketserver
luajava
timertask
resharper-6.0
maven-1
nstokenfield
sifr3
perl5.12
leader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App