community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Business Central 2026 release wave 1 (BC28): AL developers can use semantic search on data and metadata

BC28 lets AL developers run semantic similarity searches, such as top n records by similarity to a search term, over data and virtual metadata records. Microsoft's docs call the codeunit Semantic Data Search, but the author found it as codeunit 2000000025 Semantic Search, with the methods SetMaxResults, SetSearchTarget and FindSimilarByField. It is scoped OnPrem, so extensions get error AL0296 and cannot use it in the cloud.

post Dynamics 365 Lab

Yun Zhu · 2026-03-11 · 330 words · about 2 min

"The Scope attribute is currently set to OnPrem. This means it cannot be used in the cloud version."

Key points

  • New codeunit 2000000025 enables semantic search on metadata objects and data records with similarity ranking
  • Developers can query records using similarity-based syntax like TOP n by similarity to search terms
  • Methods include SetMaxResults, SetSearchTarget, and FindSimilarByField for controlling searches
  • Currently scoped to OnPrem only, unavailable for cloud extensions due to scope restrictions

Quotes

  • “The Scope attribute is currently set to OnPrem. This means it cannot be used in the cloud version.” (Critical limitation explaining why the feature is unavailable for cloud extension development)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

  • codeunit “Semantic Data Search”
  • codeunit “Semantic Search”

Not found in BC28-30: codeunit “Semantic Data Search”, codeunit “Semantic Search”.

Context

  • Features: semantic ranking, similarity-based queries, metadata search, data search, SetMaxResults method, SetSearchTarget method, FindSimilarByField method
  • Versions: BC28, 2026 release wave 1

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.