Skip to content

Frequently Asked Questions

Stanislaw Stempin edited this page Aug 17, 2017 · 47 revisions

Menusuite objects are not yet supported. What do I do?

Two primary purposes of menusuites are to:

  • Make pages searchable
  • Make pages accessible through a navigation structure

The first purpose cannot be achieved in extensions V2 just yet, we plan on adding a different mechanism. The second purpose can be achieved by extending the Navigation Pane page and/or by adding Actions to other existing pages that can serve as a navigation starting point.

Permission property - cannot grant permissions to objects outside of current module

Right now you can only use the property with application objects from your own module. Later on the property will be extended to base application objects for which full permissions are granted in the license.

DotNet types are not available in Extensions V2. What now?

DotNet interop is not available due to safety issues in running arbitrary .NET code on cloud servers. There are at least 2 possibilities that we recommend:

  1. With each monthly update we are providing new AL types that replace the most typical usages of .NET like HTTP, JSON, XML, StringBuilder, Dictionaries and Lists. Many .NET usages can be replaced directly by these new AL types resulting in much cleaner code.
  2. For things not possible to achieve in AL code we recommend using Azure Functions to host the DLL or C# code previously embedded in NAV and call that service from AL I recommend the following blog posts from our MVPs to understand it in more depth: http://vjeko.com/state-net-affairs/
    http://www.kauffmann.nl/2017/06/24/al-support-for-rest-web-services/
    http://vjeko.com/invoking-azure-functions-al/

The type or method 'XYZ' cannot be used for 'Extension' development.

We have blocked off a certain set of functions from being directly called from Extension code. The approach was based on a conservative static analysis resulting in some functions being blocked unnecessarily. If you require to use one or more of these functions please log an issue and provide a full list. We will analyze the request and unblock functions deemed safe.

Clone this wiki locally