Our support engineers have assembled the top recommended solutions for you.
Microsoft Dynamics AX 2012
Upgrading to Microsoft Dynamics AX 2012
Data Import, Export, and Migration
Microsoft Dynamics AX 2009
Application Object Server (AOS)
Enterprise Portal and Role Centers
SSRS and SSAS Integration
I'm trying to issue a purchase packing slip for more than one po (purchid) through x++ code
I''m using the salesformletter_packingslip, of course coupled with the parameter tables
So I pass the first purchid table and run the chooselines method, then I pass the 2nd one and run the chooselines again,
But it seems that the 2nd one overrides the 1st one and only the last po is received when the run method is called!
I tried to run the chooselines only one time at the end, but I'm getting the same results
Can any one pass the code to do this task properly?
I know it's possible beacuse we can achieve the same functionality and choose different pos and select lines for receiving in the periodic form
maybe you should first update the query of the FormLetter to filter all the purchase orders you want to update.
query = new Query(QueryStr(SalesUpdate));
queryRun = new QueryRun(query);
Andi's answer was the right one
I just created a simple job to test it, added 2 POs to the query then called the formletter.run, and it works, Thanks Andi.
I'll add my code to choose lines later on, but I do not expect problems doing that
Other Microsoft Sites
I'm a Customer
I'm a Partner
Follow Microsoft Dynamics