web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to use DotNet variables in AL Extension with Azure Function and call your assemblies from there ?

(0) ShareShare
ReportReport
Posted on by 95

Hi ,

I have been reading that you can use DotNet DLLs from Azure Function and be able to use DotNet variables in my AL extension. How can I do this?


Help Me please.

Regards
I have the same question (0)
  • Suggested answer
    Salah Eddine BENOUALA Profile Picture
    485 on at

    Hi,

    Here is a good start from Stefano Blog :

    https://demiliani.com/2018/03/06/nav-extensions-using-custom-dlls-from-azure-functions/

     

    -----------------------------------------

    Best Regards,

    Salah Eddine BENOUALA

    Dynamics NAV & 365 Business Central Consultant

    Please verify my answer, if you find it helpful.

    Doing so you'll show others that there was found a solution and you credit my help.

  • Rcordova NW Profile Picture
    95 on at

    Im read the link but how to agree DotNet DLL ?

    How to call DotNet DLL in AL Code Unit o Extension ?

  • Suggested answer
    Salah Eddine BENOUALA Profile Picture
    485 on at

    You cannot directly call .NET DLLs from al codeunit or extensions, because Saas service doesn't allow you to use local resources.

    So you have to call Dlls from azure function. In the link above, it shows how to integrate a DLL in azure functions and call it with Al language.

     

    -----------------------------------------

    Best Regards,

    Salah Eddine BENOUALA

    Dynamics NAV & 365 Business Central Consultant

    Please verify my answer, if you find it helpful.

    Doing so you'll show others that there was found a solution and you credit my help.

  • Rcordova NW Profile Picture
    95 on at

    Ok . but how to call this DLL  in AL Language ?

  • Rcordova NW Profile Picture
    95 on at

    In te Azure Fuction i need copy my Local prodecure with DotNet Variables or only the DotNet DLL and call in AL Language and use in Code-unit ?

  • Suggested answer
    THE Italian Profile Picture
    on at

    This is a very useful video to follow 

    https://demiliani.com/2019/10/31/azure-functions-for-dynamics-365-business-central-developers-webcast-recording/

    Basically, you have to move your own code into Azure Functions (AF). You do not need, then, to declare anything in your BC object but you have to call an external URL that is the endpoint that exposes the signature of your functions. You have then to use HttpClient to perform the call. 

  • Rcordova NW Profile Picture
    95 on at

    Thanks  Duilio .

    Can i use this example to recreate this procedure "CreateXMLDocument33" is in CodeUnit "E-Invoice mgt " i need the DotNet variables ( XmlDocument , XmlNode ) . to create all XML

  • Suggested answer
    THE Italian Profile Picture
    on at

    No. You have to create everything from scratch your own, unfortunately.

  • Rcordova NW Profile Picture
    95 on at

    Ok , im need create all xml in external procedure ?

  • Verified answer
    THE Italian Profile Picture
    on at

    I think you have to search if there are existing events that you could subscribe for, otherwise you have to wrap up everything externally within your azure function.

    My best suggestion is to have the hands dirty with AF, first, to understand pro and cons and how far you could go with these.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans