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

Announcements

No record found.

News and Announcements icon
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
  • 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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans