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

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 132

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,708 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
    95,729 Super User 2025 Season 2 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

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