TECHNICAL LIBRARY

Articles

Reviewed engineering guidance for X++, architecture, integrations, performance, and secure delivery.

Request an article
D365 F&O Functional

Why D365FO vendor invoices get stuck in validation, workflow, or hold states

Understand the most common reasons vendor invoices appear stuck in validation, workflow, or hold states in D365 Finance, and how to recover them without guessing. The key is to separate matching issues, workflow errors, and editing locks, because each one has a different fix.

By XppForge Articles · Sep 22, 2026
X++ Development

Why a D365FO form filter disappears after `executeQuery()` in a datasource extension

If you add or rebuild a form datasource query in X++ and the user’s filter suddenly disappears, the problem is usually that `executeQuery()` reran the datasource query instead of preserving the current search state. This article shows when that happens, why it happens, and how to keep user filters intact without breaking the form.

By XppForge Articles · Sep 13, 2026
X++ Development

How to refresh a D365FO form after updating data in X++ without losing filters

When you update a record in X++ and the form still shows old values, the problem is usually not the database update itself — it’s choosing the wrong form datasource method. Learn when to use refresh(), reread(), research(), and executeQuery() so the grid updates correctly without wiping user filters.

By XppForge Articles · Sep 13, 2026
X++ Development

How to extend a D365FO method with Chain of Command without breaking the call chain

Use Chain of Command for wrappable public or protected methods, call next in the right place, and avoid the common mistakes that make an extension appear to work while actually bypassing base behavior. This article explains when CoC is valid, when it is not, and how to choose it over event handlers.

By XppForge Articles · Sep 13, 2026
D365 F&O Functional

How D365FO cash discounts work on vendor payments and settlements

Understand when Dynamics 365 Finance applies a vendor cash discount, how the settlement logic decides whether a payment qualifies, and which parameter controls the accounting entry. This article focuses on the practical cases that usually confuse AP teams: due date vs cash discount date, partial payments, overpayments, and where the discount posts.

By XppForge Articles · Sep 13, 2026
X++ Development

How to see the SQL generated by an X++ query in D365FO

When an X++ query returns unexpected rows, duplicates, or slow performance, the fastest way to debug it is to inspect the SQL that D365FO actually generates. This article shows the practical ways to print the query text and why the result is not always the same as the SQL you would write by hand.

By XppForge Articles · Sep 3, 2026
D365 F&O Functional

Why D365FO vendor invoices fail three-way matching

Learn what three-way matching actually checks in Dynamics 365 Finance, why vendor invoices fail on quantity or price, and which parameters you need to verify before the invoice can be posted.

By XppForge Articles · Sep 3, 2026
X++ Development

D365FO form datasource refresh(): when to use refresh, reread, research, and executeQuery

If a D365FO form shows stale data after an X++ update, the fix is usually not to call refresh() by itself. This article explains when to use refresh(), reread(), research(), and executeQuery(), why each one behaves differently, and the practical pattern that avoids empty grids, stale fields, and lost filters.

By XppForge Articles · Sep 3, 2026
X++ Development

Why `executeQuery()` wipes user filters on a D365FO form datasource

`executeQuery()` is the right call when you changed a form datasource query in code, but it also rebuilds the datasource query run and can drop user-applied filters. If you only need to re-read data while preserving filters and sort order, `research()` is usually the safer choice.

By XppForge Articles · Sep 3, 2026
D365 F&O Functional

Troubleshoot D365FO invoice matching discrepancies in Accounts payable

When vendor invoices don’t post the way users expect, invoice matching is often the reason. This article explains how D365FO invoice totals matching and three-way matching work, where to check the setup, and how to resolve the most common discrepancy scenarios without guessing.

By XppForge Articles · Aug 28, 2026
D365 F&O Functional

How D365FO alert batch jobs and recurrence actually work

A practical guide to setting up batch jobs for alerts in D365 Finance & Operations, including recurrence choices, due-date vs change-based alerts, and the common setup mistakes that delay notifications.

By XppForge Articles · Aug 28, 2026
X++ Development

D365FO Chain of Command: when to use class extensions vs event handlers

A practical guide to choosing between Chain of Command and event handlers in Dynamics 365 Finance and Operations, with the tradeoffs that matter in real development work. It explains why extensibility points exist, where method wrapping fits, and how to avoid the common mistake of picking the wrong extension pattern.

By XppForge Articles · Aug 24, 2026
D365 F&O Functional

How D365FO batch job recurrence and alerts actually work

A practical guide to setting up recurring batch jobs, understanding what recurrence really does, and using batch alerts so you know when a job finishes, fails, or gets canceled.

By XppForge Articles · Aug 23, 2026
Integrations

D365FO Visual Studio Extension for X++ Development

XppForge is a Visual Studio extension for D365FO developers that helps generate X++ classes, SysOperation frameworks, Chain of Command extensions, forms, security objects, and more.

By Sunny Vasty · Aug 6, 2026
Article

How to Create a Runnable Class (Job) in D365FO

Learn how to create and execute a runnable class (job) in D365 Finance & Operations. This guide covers the main() method, running classes from Visual Studio and SysClassRunner, practical code examples, and common mistakes to avoid.

By Sunny Vasty · Aug 6, 2026
X++ Development

Macros in X++

Learn what macros are in X++, when they're useful, and why they should be used carefully.

By Sunny Vasty