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, ...
Unanswered

How to make use of BudgetControlProcessor for PO ?

(1) ShareShare
ReportReport
Posted on by 558
Hi guys,
 
I want to check my PO when it is create /automatically/ from Web API. So the logic is this Web API will trigger PO creation, and while inserting each the Purchase Lines, I want the code to also run Budget Checking.
May I know how to implement this ?
 
I was told that I need to make use of class BudgetControlProcessor, however I have limited knowledge about how to use it exactly.
 
Basically, when it does not have budget during this processing, The Web API should return /false/. I know how to return the API to false, what I don't know is how to do check Budget according to my Budget Register Entry.
 
Thanks.
 
  • André Arnaud de Calavon Profile Picture
    307,314 Super User 2026 Season 2 on at
    Hi Ken,
     
    I also don't have experience in calling the budget checks from X++ coding. 
    To be able to learn more about what class and method to use, you can reverse engineer the form design of the purchase order details. You can then check how the budget check is executed.
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    Regarding what you said about running the check code after creating a PO through the API, you need to integrate the BudgetControlProcessor class for budget checking in the code that handles the purchase order creation and purchase line insertion. If the budget check fails, you can return false from your web API to indicate that the purchase order creation process has experienced a budget overrun.
    Best regards,
    Kevin
  • Ken Manhattan Profile Picture
    558 on at
    Hi Kevin,
     
    Yes, that exactly what I have in mind, but don't know how to make use of that BudgetControlProcessor. And to do reverse engineering to what standard doing, unfortunately is beyond my skill. 
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 528 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 424 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 374

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans