Reputation: 1020
As per title, I'm trying to call some C/AL function from .NET - is this possible at all? I'm using NAV2017.
Upvotes: 1
Views: 1293
Reputation: 70
If your Code will be running on the NAV Server you can add the Microsoft.Dynamics.Nav.Management.dll as Reference to your Visual Studio Project. In this case you have to deploy your App to the Service Directory (C:\Program Files\Microsoft Dynamics NAV\*\Service).
Upvotes: 1
Reputation: 1217
You'd be best calling a Codeunit exposed over Dynamics NAV Web Services which in turn, will trigger C/AL code.
A simple example (that UPPERCASES a string) for NAV 2017 can be found on MSDN;
Upvotes: 5