web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

D365FO Batch job with two Queries

(0) ShareShare
ReportReport
Posted on by 132
Hi All,
 
I'm struggling with this requirement I got. This is a simplified version of what I need to do:
 
Button: When the user clicks this button, this should happen:

First of all, the job should (preferably mandatory) run in Batch. 

I have 2 Simple Queries in the AOT. The user should be able to add filters etc. to both Queries.

Next, the Batch job should run, execute these two Queries and save the results to a table.

For this scenario, assume the first simple Query to contain the custTable. The second one contains the vendTable.

After the user modified the filters on the Batch Job Dialog, the batch job should export the data from these two Queries to the table 'TotalTable', Holding the Customer/Vendor Account and the Customer/Vendor Name
 
 
Normally I could use something like the "Records to include" on the Batch Dialog, but as I have  two Queries I do not really have a clue on how to get  this to work. Is this possible ?
 
Or should I create a normal form or class, giving the user the option to add filters etc. to the Query and then pass these Queries to a class that creates a Batch job with these two Queries ?
 
Any thoughts or someone that might have encountered a similar requirement before ?
 
FYI: I will be away until Wednesday, so I cannot respond before then.
 
Thanks !
 
Gerard
 
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 707 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 618 Super User 2025 Season 2

#3
CU05031448-0 Profile Picture

CU05031448-0 600

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans