Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

API/Web service for Company address

(0) ShareShare
ReportReport
Posted on by 120

Hi,

How to get Company information using API/Web service in business central?

Regards

C rao

  • Verified answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,236 Super User 2024 Season 1 on at
    RE: API/Web service for Company address

    Thankyou for letting the community know about the final outcome.

  • Suggested answer
    RE: API/Web service for Company address

    api.businesscentral.dynamics.com/.../companyInformation

  • RE: API/Web service for Company address

    Issue resolved

    below url we used

    api.businesscentral.dynamics.com/.../companyInformation

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: API/Web service for Company address

    In that case you need to create a webservice of page id - 1 and use that URL, check that if it works for you, otherwise you need to create a new list page with Table ID 79, and then publish as web service and access that URL.

  • Suggested answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,236 Super User 2024 Season 1 on at
    RE: API/Web service for Company address

    Hi - You can follow these steps:

    1. Create a web service in Business Central, by following the link learn.microsoft.com/.../across-how-publish-web-service

    2. Here you can select the "Company Information" page if you see it in lookup. If you don't then you would have to hire a developer and get an "API Page" built out of Company Information table and then publish it on web services as shown in point 1

    learn.microsoft.com/.../devenv-develop-custom-api

    These are the data fields included in company information

    pastedimage1679665719945v2.png

  • RE: API/Web service for Company address

    Hi Shan,

    I am looking for company address info, similar info which we print in Posted sales invoice

    Regards

    C Rao

  • Suggested answer
    ShanAbeywicrema Profile Picture
    ShanAbeywicrema 940 on at
    RE: API/Web service for Company address

    You can use following endpoint to access companies.

    api.businesscentral.dynamics.com/.../YOUR ENVIROMENT NAME/api/v2.0/companies

    But, best way is, first register app in Azure, give necessary permissions, then create AAD in BC.

    Then you can access above endpoint.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans