4

I would like to propose an enhancement to the API functionality in Business Central that could significantly benefit both partners and customers.


Currently, there is an option to define a custom result code in an API using the WebServiceActionContext Data Type:


However, it would be extremely beneficial to have an object that allows us to inspect more information about the external call before processing any data.


For instance, if I want to return a list of production orders for a specific work center, I face a limitation. Since “Work Center” is not a field on the Production Order table, I cannot include it in the $filter parameter.



Therefore, I propose that we gain access to the HttpContent in the OnOpenPage trigger of the incoming call.


This enhancement would enable us to read additional information, handle the web service call more effectively, reduce the dataset to be returned, and add extra business logic to an API call, independent of the dataset of the API Page.

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team