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

Notifications

Announcements

Community site session details

Community site session details

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

Not able to make api call in business central

(0) ShareShare
ReportReport
Posted on by 73

hello all,

I am trying to get access-token by calling rest API in business central. I am getting error as per the below image. I need to pass several parameters in body which includes grand-type,resourse,client_id,username and password while making call through al code. did some one face this issue?

Below is the api:

pastedimage1638533504083v1.png

I have the same question (0)
  • Automatic login in business central Profile Picture
    73 on at

    Hello mohana,

    I tried adding parameters to jsonobject and pass to http content .but I'm getting same error.below image contain code which I have written.can you suggest

    IMG_5F00_20211204_5F00_132043.jpg

  • Suggested answer
    Mohana Yadav Profile Picture
    61,019 Super User 2025 Season 2 on at

    Please check this blog.

    It may help.

    www.msnjournals.com/.../generic-oauth2-library-for-business-central

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

News and Announcements

Season of Giving Solutions is Here!

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 1,594

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,594

#3
YUN ZHU Profile Picture

YUN ZHU 748 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans