I know the current hype is about the new dev tooling and absolutely rightfully so. Truly exciting stuff. However I guess a lot of us will be at least partly stuck with C/AL and C/SIDE for the foreseeable future, which means you might still be interested with some not-so-exciting stuff about the old world: How to change C/AL source code through C#.
Category Archives: Visual C# / ASP.net
Off-topic: A C# lesson learned about conditional operators
If it was hard to write, it should be hard to understand, that’s an unwritten rule-that-rules-them-all of programming. You absolutely love to apply syntactical stunts to impress your coworkers, especially if you do C# and they don’t, don’t you?
Just use DotNet
Day by day I am moving closer to DotNet programming in Dynamics NAV. More and more of the things I like to do are more easily solved with DotNet than with native C/AL code.
Dynamics NAV is moving to C#, get ready to follow!
Ok, maybe the title is not to nice, but hey, I got your attention.
Since the introduction of the Three tier environment, Dynamics NAV runs on C#. In the first versions it was hidden and closed, but with the intoduction of DotNet interoperability it is possible to move bigger pieces of business logic from C/AL to C#.
Downloading a HTTP file in NAV2013 with .NET
You can use a WebClient DotNet variable to download a file from a HTTP server directly into a BLOB field in Microsoft Dynamics NAV 2013.
Use Reflection to find a .NET class with NAV2013
This little function can be used to figure out where a class is located – It will run through all assemblies and all classes available to Microsoft Dynamics NAV 2013.
DotNet Quick Tip: Accessing members with invalid names
A friend asked my by e-mail today about a problem he encountered with DotNet interop: how to access a property of an object, if the property name matches a reserved word in NAV. A simplest example is from the Microsoft.Dynamics.Nav.SMTP.SmtpMessage class that comes bundled with NAV 2013.