Notifications
Announcements
No record found.
Hi,
Im new at BC.
I want to know how to declare a dot net variable into a report.
thanks
A DotNet variable cannot be used in a SaaS environment. You must encapsulate your.NET code within an Azure Function and call it from AL using the HttpClient object.
If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.
And even if you are in BC on prem you should implement it the way that Vaishnavi J suggested. So that you are ready to move to the cloud when you find out that the cloud is the best option for you.
Hi, just adding some info for BC On-Premises
You can still use .NET Interoperability in On-Premises.
More details:
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started-call-dotnet-from-al
And note:
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/deprecated-features-platform#net-add-ins-not-using-net-standard-removal
Hope this helps.
Thanks.
ZHU
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,135
YUN ZHU 733 Super User 2025 Season 2
Sumit Singh 612