End of mainstream support for Microsoft Dynamics AX 2009, 2012, and 2012Mainstream support for Dynamics AX 2009 Service Pack 1 (SP1), Dynamics AX 2012, and Dynamics AX 2012 R2 ended Oct. 9, 2018. After that date, only security hotfixes will be provided for these three versions through the extended support period that until Oct. 12, 2021. Read more
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Using Run base batch process class, want so select all the Sales order for a customer against all that sales order during this period.
and the from all the sales lines sum all the Qty and store in a different table.
1) See class Tutorial_RunbaseBatch to understand how to create batches by using it
2) Create a select statement that selects all sales orders for customer X (defined in the batch dialog) and joins all sales lines. Add sum functions and group by statements as needed.
3) Write the summed values into a table
I suggest you start by working with step 2 without the batch, in a normal x++ job. So you can first get your select statement ok, before adding all the batch logic and customer selection dialog.
I have written this to
while select salesTable where salesTable.CustAccount == customerId
join salesLine where salesLine.CustAccount == salesTable.CustAccount
Now I want to select the itemId (Each time it is in the different sales line) for similar custAccount.
Like this in the pic attached.
while select salesTable
group by CustAccount, ItemId
where salesLine.CustAccount == salesTable.CustAccount
&& salesTable.CustAccount == myCustAccount
You definitely forgot to add one more caluse:
&& salesLine.SalesId == salesTable.SalesId
without it you would get data that does not make ant sense.
Business Applications communities