web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to get all locations under a company

(0) ShareShare
ReportReport
Posted on by 10

Hi ,

I have multiple locations under a company. Is there an API that I can use to list all locations under the main company? Hopefully someone can guide me to get the data

Thanks,

Silvester

  • Suggested answer
    DAnny3211 Profile Picture
    11,427 Super User 2026 Season 1 on at

    hello

    you need to develop a custom api

    DAniele

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    I think you can use this standard API

    learn.microsoft.com/.../dynamics_location

  • joseph22 Profile Picture
    10 on at

    Hi Inge,

    In the below URL

    GET https://{businesscentralPrefix}/api/v2.0/companies({id})/locations({id}) its asking to enter the location id.

    Could you please suggest How to pass it as I need to get all locations under one of many companies?

    Thanks,

    Silvester

  • joseph22 Profile Picture
    10 on at

    Hi Daniele,

    Could you please suggest how to create a custom API such that I can get the sublocations and accounts under a company

    Thanks,

    Silvester

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 765 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 571 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 299 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans