Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
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 TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming 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