[Topic moved from Navision Tips & Tricks forum to Navision forum]
Program it simulating that a user would do it on a form:
CLEAR(recSalesHeader);
recSalesHeader."Document Type" := recSalesHeader."Document Type"::Order; // needed because the noseries must take a number from the correct series and from quotes for example
recSalesHeader.INSERT(TRUE); // this creates a new "No."
recSalesHeader.VALIDATE("Sell-to Customer No.",codSomeCode);
......
recSalesHeader.MODIFY(TRUE);
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Also you cannot run Business Logic from outside of Navision (SQL),
I would suggest to create a staging table and populate it.
Then from Navision have NAS monitor the table and create the orders.
Ahmed Rashed Amini
Independent Consultant/Developer
Also you cannot run Business Logic from outside of Navision (SQL),
I would suggest to create a staging table and populate it.
Then from Navision have NAS monitor the table and create the orders.
Hi,
Where can i read about NAS? Can I ask for any link?
Answers
Program it simulating that a user would do it on a form:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I would suggest to create a staging table and populate it.
Then from Navision have NAS monitor the table and create the orders.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Hi,
Where can i read about NAS? Can I ask for any link?
Thanks,
There is also a sell hello with Navision on MSDN. There are a lot of threads in here on NAS as well.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n