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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Getting a token from NAV Business Central

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I'm new to APIs but get the idea.

I'm trying to call Dynamics BC to get some info for an external app we are building.

I managed to get a token and make a call via PostMan, however, I can't seem to get a token from a cURL call externally.

I have all the pieces of info (client_id,client_secret, auth url, token url etc.).

If anyone can tell me in a simple way how to get a token (or even just the code to ask for a token) I would be very grateful.

So something like:

1. call url 1 GET : login.windows.net/.../authorize   cURL params: client_id: 123456  client_password: 123456 etc

2. call url 2 GET: url2    cURL: xxxxxxx

3. call url 3 POST: ......./token     cURL:xxxxxx

I see a lot of conflicting and unclear info and guides but can't get it to quite work.

Thanks!

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Could this help you further:

    github.com/.../CreateAzureAppOAuth2Token

    Thanks.

  • Impact123 Profile Picture
    10 on at

    Thanks Marco.

    I'm not sure the info in the link will help much, I would have to reverse engineer the scripts provided there to see if they can help.

    I need to get it simplified to a call-> result, call-> result format as I can't use external apps and languages.

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    No problem, I got this answer from one of our engineers working in Dubai region, so I did share it on his behalf. Feel free to raise a support ticket to Microsoft. A few of our team has in-depth experience with this. They may be able to help you much faster when we look at the scenario directly.

    Thanks.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans