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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Submit custom process as batch job

(0) ShareShare
ReportReport
Posted on by 6,611
Hello:
I have a task to write a custom process to take a list of selected (/checked/) PO's from the PO list page, then submit them for invoice generation and posting. Users can select 50 PO's or more so it's necessary for this process to be submitted as a batch job. My initial thought was to create a process based on SysOperation framework, tie it to a menu, add the menu as a button control on the PO list page. Not sure if this will work, but the other question I have is would I be able to send along the list of select PO's in the menu call? 
Yes, I realize there's an existing function to do this but we're not going to use it because our process requires a slight deviation.
I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    I am not exactly sure you can directly create a button and all selected records can be sent through batch. My suggestion is to create a new menuitem and create a batch job with filter criteria, so that whatever purchase orders are selected, those can be invoiced and in a batch. This can be achieved by normal sys operation framework with filter criteria.
  • Verified answer
    André Arnaud de Calavon Profile Picture
    304,079 Super User 2026 Season 1 on at
    Hi KBanh,
     
    Are the users selecting the purchase orders by marking grid roles? If so, you can first store selected POs in a table or container variable and use this as input for the batch job. The standard application is also storing details what to post in PurchParm... tables. 
  • GirishS Profile Picture
    27,843 Moderator on at
    Hi Kbanh,
     
    How the user selects 50 lines from the grid? It will be difficult to select 50 lines from the grid manually.
    You can use MultiSelectHelper class to get the selected records from the grid and as Andre said you can insert into a container and pass it to the classes.
     
    Thanks,
    Girish S.
     
  • bankk Profile Picture
    6,611 on at
    Hi Bharani, 
    That would be great if I can depend on a query and set of criteria. However, the request is the user select the PO records. 
  • bankk Profile Picture
    6,611 on at
    Hi Andre,
    Yes, the users will be selecting PO from the list page. 
    Once I have the PO's in the container, is the idea then to pass the container via the controller's args param? 
    Thank you.
  • bankk Profile Picture
    6,611 on at
    Hi Girish,
    Yes, agreed on how inefficient it would be to select all those records. As I understand, there's not a good way to filter for these records. The 50 count is an estimate at this point.
    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans