---
id: post/aardvarklabs-blog/2017
type: post
title: Step-by-Step Guide to Business Central API Queries
summary: This post explains how to create Query objects configured as APIs in Business Central to expose data for external systems like Power BI and Power Automate. It demonstrates building a Vendor Ledger API and connecting it to Power BI for reporting, highlighting advantages like handling related records and enforcing read-only access.
tier: community
language: en
tags:
  - api
  - query
  - power bi
  - vendor ledger
  - data exposure
  - read-only
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:00:19.478Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: bc17a4edfc764a65e10657ae0a913d87abea9c4e3b5b3c0d1ca00e2e7c01dcc9
evidence:
  - kind: blog
    url: https://aardvarklabs.blog/2025/07/11/step-by-step-guide-to-business-central-api-queries/
    title: Step-by-Step Guide to Business Central API Queries
    date: "2025-07-11"
    commit: null
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "2017"
source_id: aardvarklabs-blog
source_name: Aardvark Labs
url: https://aardvarklabs.blog/2025/07/11/step-by-step-guide-to-business-central-api-queries/
published_at: "2025-07-11T12:00:00.000Z"
author: Marcel Chabot
full_text: false
words: 674
quotes: []
code_objects_mentioned:
  - query ARD_VendorLedgerAPI
systems:
  - integration
  - reporting
versions_mentioned: []
preview:
  embeddable: true
  frame_url: https://aardvarklabs.blog/2025/07/11/step-by-step-guide-to-business-central-api-queries/embed/
  image: https://aardvarklabs.blog/wp-content/uploads/2025/07/1ae233bc-b4f3-4431-acf4-6b80d345760f.jpeg
  image_alt: null
  image_w: 1024
  image_h: 1024
  site_name: Aardvark Labs
  favicon: https://aardvarklabs.blog/wp-content/uploads/2024/04/design-1.png?w=32
  probed_at: "2026-10-07T11:51:54.777Z"
---

# Step-by-Step Guide to Business Central API Queries

[Read the post](https://aardvarklabs.blog/2025/07/11/step-by-step-guide-to-business-central-api-queries/) · Aardvark Labs (Marcel Chabot) · 2025-07-11 · 674 words · tier community · reviewed (checked by Opus)

> This post explains how to create Query objects configured as APIs in Business Central to expose data for external systems like Power BI and Power Automate. It demonstrates building a Vendor Ledger API and connecting it to Power BI for reporting, highlighting advantages like handling related records and enforcing read-only access.

## Key points

- Query objects configured with API settings (APIGroup, APIPublisher, APIVersion, QueryType = API) automatically expose data to external systems
- Query-based APIs handle related records easily and can nest several layers deep without requiring separate list parts
- Query APIs are read-only by nature, preventing accidental write operations and protecting data integrity when shared with reporting teams
- Query APIs can be directly connected to Power BI using the Dynamics 365 Business Central connector to build reports

## 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.

- query "ARD_VendorLedgerAPI"

Not found in BC28-30: query "ARD_VendorLedgerAPI".

## Context

- Features: API Query objects, API data exposure, related data handling, read-only APIs, Power BI integration, vendor ledger reporting

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