community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

Azure Function SQL Trigger: how to use it (and why it can be useful in your Business Central projects)

Azure SQL Triggers for Azure Functions enable real-time event-driven integrations with Business Central by automatically triggering a function when data changes occur in a SQL database. The post demonstrates setup, implementation, and testing of SQL change tracking to synchronize external application data with Business Central.

post Stefano Demiliani

Stefano Demiliani · 2025-05-08 · 705 words · about 3 min

Key points

  • Azure SQL Trigger Binding uses SQL change tracking to detect INSERT, UPDATE, and DELETE operations on monitored tables
  • Enable change tracking on the database and table using T-SQL before configuring the Azure Function trigger
  • Create an Azure Function using the SqlTriggerBindingIsolated template with .NET 8 Isolated runtime
  • The solution enables serverless, event-driven integrations where external systems can push data to Business Central automatically when changes occur

Context

  • Features: Azure SQL Triggers for Azure Functions, SQL change tracking, event-driven applications, real-time data synchronization
  • Versions: .NET 8 Isolated LTS, SQL Server 2016-2022

Source: Stefano Demiliani, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.