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)

NAV-Autotask integration

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

We need to integrate Autotask With NAV through web service API.We have API written in c sharp to get data from Autotask now we need assistance on how to call it from Dynamics NAV 2018.Can somebody help us to perform this task.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Use a dotnet variable and HTTPRequest object with C/AL. Something like:

    LOCAL CallWebservice(Method : Text[10];API : Text[15];RequestData : Text;Parameters : Text) ResponseData : Text

    Credentials := Credentials.NetworkCredential(UserName,Password);

    Request := Request.HttpWebRequest.Create(WebserviceRoot+API+Parameters);

    Request.Method := Method;

    Request.ContentType := ContentType;

    Request.Host := Host;

    Request.Credentials := Credentials;

    WebResponse := Request.GetResponse();

    HttpStatus := WebResponse.StatusDescription;

    StreamReader := StreamReader.StreamReader(WebResponse.GetResponseStream);

    ResponseData := StreamReader.ReadToEnd;

  • Verified answer
    keoma Profile Picture
    32,729 on at

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans