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 :
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

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

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans