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

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)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,172 Super User 2026 Season 1 on at

    Please check this blog.

    It may help.

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

  • 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans