Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

.NET variable error in AL for NAV 2018

Posted on by 4,184

Hi All,

I had used a Digital Signature Addin in NAV 2017 which uses .NET variables, while using the same in NAV 2018 using VS Code (Extensions) It says .NET is not recognized as valid type. After some research I've know that .NET is not supported in AL . I'm upgrading the project so I need this Addin. How to move about?

*This post is locked for comments

  • Suggested answer
    Andrey Baludin Profile Picture
    Andrey Baludin 3,941 on at
    RE: .NET variable error in AL for NAV 2018

    Part of them has been replaced by new data types. For example - HttpClient, XMLDocument e.t.c.

    Full list here:

    docs.microsoft.com/.../devenv-restapi-overview

    For other part you can use Azure Functions, as Stefano wrote.

  • Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: .NET variable error in AL for NAV 2018

    Unfotunately there's no native support for dotNet variable now in AL. ACTUALLY /maybe things could change in the future) the only sopported and recommended way to use DotNet with AL is by using Azure functions. You can rewrite your .NET code by wrapping it in an Azure function and call it from NAV.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans