Writing
Practical notes on Business Central APIs and TypeScript, from building product for manufacturers.
Business Central APIs
Using FlowFilter Fields as Query Parameters in Microsoft Dynamics 365 Business Central Page APIs
An undocumented pattern for passing typed input parameters to Business Central Page APIs on GET requests, using FlowFilter fields instead of bound actions.
3 min read
Optimizing Business Central API Performance
Why a Page API with nested parts slows down on large datasets, and how switching to a Codeunit API cut response times by 80 percent.
3 min read
OData filter expressions in Microsoft Dynamics 365 Business Central
A practical reference for OData filter expressions in Business Central APIs - comparison and logical operators, string functions, and $select for smaller payloads.
3 min read
Codeunit APIs in Microsoft Dynamics 365 Business Central
How to expose a Business Central codeunit procedure as an HTTP endpoint with OData unbound actions - full control over parameters, logic, and response.
1 min read
API-first with TypeSpec
API first with TypeSpec, OpenAPI, React/Tanstack and Microsoft Dynamics 365 Business Central, part 1
Define the Business Central Sales Order API contract once with TypeSpec, generate the OpenAPI spec, and set up the foundation for end-to-end type safety.
5 min read
API first with TypeSpec, OpenAPI, React/Tanstack and Microsoft Dynamics 365 Business Central, part 2
Consume the TypeSpec-generated OpenAPI definition from a React frontend with TanStack Query and openapi-client-axios for end-to-end type safety.
3 min read
React and TanStack
Type-Safe Tables: Eliminating Prop Drilling with TanStack Table, React Context and Shadcn/ui
Provide a fully typed TanStack Table through a React context provider so nested components consume the table without prop drilling - with Shadcn/ui and a generic ColumnFilter.
9 min read
Reports
Reports in Microsoft Dynamics 365 Business Central
Building a custom Sales Quote report in Business Central with an RDL layout in Microsoft Report Builder, and substituting the built-in report with an event subscriber.
3 min read