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 :
Microsoft Dynamics NAV (Archived)

Call an external API from NAV C/AL code

(0) ShareShare
ReportReport
Posted on by 2,582

Hi all,

Can someone suggest how to call an external api from NAV C/AL code ?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    Hi, 

    You can call external web services using "Web Service Request Mgt" codeunit. There are many examples related to this. Please refer below URLs :

    https://community.dynamics.com/nav/b/moxie4nav/archive/2015/09/10/call-external-web-service-using-new-cu-1290

    http://vjeko.com/web-services-black-belt-consuming-nav-web-services-using-pure-cal/#

  • Krish Roy Profile Picture
    39 on at

    HI, I am sorry but there is no such Code unit in NAV2013 I know the code unit 1290 and 1297 are available or can be import in 2015 and later versions.

    But I am using NAV 2013 right now and I am really fedup while searching stuffs regarding the same but none of them were helpful.

    I need to call API with some headers and xml body but I am unable to use Streamwriter and other in order to hit the api and get a proper response.

    Its working fine with headers only but no idea how to add body content.

    Is there some one who can help me?

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans