
Hi all
I try to call a .net dll from my X++ Code. The dll is written by my self and I got an error which says that my dllfunction is not available.
I don't know why this is.
I am an absolute beginner in this stuff and need support. My code lloks like the following:
DLL mossDll;
DLLFunction function;
;
mossDll = new DLL("AXMossExchangeDLL.dll");
function = new DLLFunction(mossDLL, "uploadDocument");
Regards Chris
*This post is locked for comments
I have the same question (0)I would suggest a different approach, namely CLR Interop.
You have to add your library to the AOT (References node) and then you will be able to call your class directly from X++ code. See the link above for more details.