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

  • Verified answer
    keoma Profile Picture
    32,727 on at
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: NAV-Autotask integration

    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;

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans