Farid
Farid

Reputation: 1020

Calling C/AL function FROM .NET component

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

Answers (2)

chrisblankde
chrisblankde

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

Jake Edwards
Jake Edwards

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

Related Questions