Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Integrate .Net DLL in ...
Finance forum

Integrate .Net DLL in D365 FO

Posted on by 362

Hi Team,

Could you please help me in knowing the ways in integrating the .Net DLL in the clicked method of a button in D365.

Regards

Venkat

  • Saju Kanakaraj Profile Picture
    Saju Kanakaraj 605 on at
    RE: Integrate .Net DLL in D365 FO

    Hi Venkat,

    Please post error message here. That will help everyone to understand the issue.

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: Integrate .Net DLL in D365 FO

    Hi Sukrut/Ada,

    When calling the DLL in the clicked method, I would like to know how to declare the DLL and call the method of respective DLL. When I write Using DLL Name it is throwing a syntax error.

    Regards

    Venky

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Integrate .Net DLL in D365 FO

    What challenge you are facing ?

  • Jie G Profile Picture
    Jie G on at
    RE: Integrate .Net DLL in D365 FO

    Hi Venky,

    Could you please elaborate "calling the same in the clicked method"?

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: Integrate .Net DLL in D365 FO

    Hi Ada/Sukrut,

    Thank u.

    I have the reference and I am facing challenges in calling the same in the clicked method. Can u please help.

    Regards

    Venky

  • Jie G Profile Picture
    Jie G on at
    RE: Integrate .Net DLL in D365 FO

    Dynamics 365 for Operations Visual Studio projects allow X++ code to interact seamlessly with code written in other .Net languages. You can reference the .Net assemblies directly from your Visual Studio project: right click the "References" node under your project, select "Add Reference..."

    Once you have a reference to a .Net assembly added, an AxReference element is added to your model and the assembly (dll) is automatically copied to the bin folder of your package.

    Then you can call the classes and methods of the .Net dll in your clicked method of the button.

  • Suggested answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Integrate .Net DLL in D365 FO

    You can add it as a reference and use it in your code

    msdn.microsoft.com/.../gg881320.aspx

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans