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 call external API using C/AL code and how to process the JSON response for inserting into a NAV table

(0) ShareShare
ReportReport
Posted on by 152

Hello all, 

I want to call an external API using C/AL code.

When calling from a browser the external API is returning a JSON response.

How I can call the external API using C/AL code and process the JSON response for inserting each entity as a new record in a new NAV table.

Please provide some pointers to achieve this scenario.

Thanks in Advance!

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,786 Moderator on at

    Hi,

    Below is the link has a very good article telling about the API integration in NAV 2018, I hope it will help you.

    www.sauravdhyani.com/.../microsoft-dynamics-nav-2018-api-part-1.html

  • Suggested answer
    YUN ZHU Profile Picture
    98,062 Super User 2026 Season 1 on at

    Hi, hope the following helps.

    HttpClient Data Type

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpclient/httpclient-data-type

    More details:

    https://www.kauffmann.nl/2015/11/26/web-services-examples-part-1-the-basic-pattern/

    And here is a simple example for BC.

    https://yzhums.com/21873/

    Hope this helps.

    Thanks.
    ZHU

    Hope this helps.

    Thanks.

    ZHU

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,032 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,049 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,029 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans