Dynamics SL SDK Project for VS 2026

SteadyCode has published a slightly modified version of the Microsoft Dynamics SL SDK project template, modified so it’s a Visual Studio 2026 extension. It also works with Visual Studio 2022.9 and higher. If you have both VS versions installed, the extension will offer to update both. You can download it here. Version 2022.9 or higher is required because Visual Studio became a 64-bit application with VS 2022. That broke the Windows Forms designer until the team created a 32-bit out-of... Continue reading →

Quick Query Database Permission

This post is short, but I haven’t see it documented anywhere else. When creating a view Quick Query, be sure to Grant Select permission to the database user “E8F575915A2E4897A517779C0DD7CE”. You won’t see the view in the Quick Query Viewer’s “Select SQL View” dialog until you do that. There are several excellent resources for creating Quick Queries online. They’re easy to find. Just search for “Dynamics SL” and “Quick Query”. That’s all.

SL VBA Custom Control Crashes

Sometimes a VBA screen customization that creates a new custom control works correctly in development but crashes when installing from a there to a test or production environment. Everything in the customization may work when the control (and references to it) are removed. But if the control is a requirement, that’s not much help. If everything else seems to be correct it’s sometimes helpful to export all the other customizations on that form with VBA as text. Save, then import... Continue reading →

SL Web Apps Password Caution

When creating Active Directory passwords that will be used to login to Dynamics SL Web Apps avoid using the HTML markup characters: less than, greater than, ampersand, hash tag (#), and single or double quotes. These can cause an error message that is not logged anywhere. The message is “Sorry, an error occurred while processing your request.” The only way to detect this is specifically ask about the password he or she uses to login. The password will work to... Continue reading →

Microsoft Dynamics SL 2018 SDK with Visual Studio 2022

I wrote a post about this for Visual Studio 2019. Since then Dynamics SL made their install package compatible with VS 2019. I’m hopeful they’ll do the same for VS 2022. As of March, 2023, you cannot use the Dynamics SL 2018 CU9 SDK or prior versions with the Visual Studio 2022 Windows Forms designer. The solution is to use Visual Studio 2019 or earlier versions. The reason is that VS 2022 is a 64-bit application and the Windows Forms... Continue reading →

Error 20217 (The VBA code could not be compiled…)

I wrote an earlier post about a way to get this error when upgrading VBA from an earlier version of Dynamics SL to either v.2015 or v.2018. But I ran into a new way to get it today (other than just writing a bug into your code, which is the usual way to get it). NEVER check Tools > Options > Code Settings > Require Variable Declaration in the SL Customization Manager VB Editor. That will add “Option Explicit” to... Continue reading →

Dynamics SL Object Model Command Line Args

After searching the documentation and internet in vain for anything helpful on this topic, I created two SL SDK applications and used StartAppAndAutomate() to launch the second app from a button on the first. Here’s what I found. It works! I created two labels on the second form to show the command line arguments passed by the first. I called ApplGetParms() twice on the second form to get each of them. That emulates what a standard SL SDK app would... Continue reading →

SL Web Apps Login – 16302

I have had two web app installations now where sometime after installation users were not able to login. Users see the message “The user name or password provided is incorrect.” This occurs even when the user name and password are correct. Behind the scenes, the service log file contains “SQLDBException… 16302… InsertSessionRecord…” Upon investigation the system database installation script seems to have skipped the part where it adds some new columns to the WebServiceAccess table. An XEvent Profiler session revealed... Continue reading →

Accessing Dynamics SL Controls in VBA using sivMyApp.

The Dynamics SL object model documentation uses sivMyApp as the sample variable name to refer to an instance of SIVApplication. When using the object model, the developer has to instantiate it and can name it anything. It’s also always available in the Customization Manager using that name and can be called from VBA, although I don’t think that’s officially documented anywhere. You don’t have to instantiate it in the Customization Manager. I have used it, or seen it used, this... Continue reading →

For Want of a Comma…

When adding a new field to a Dynamics SL screen customization that has a PV (“Possible Value”) property that only uses the value entered in the field (in other words, there are no other parameters), it’s important to end the property value with a comma. Without that you may see strange error messages, like this: The exported PV property, when viewed using a text editor or VS Code should looks like this, when no additional parameters are needed. pv              =   “”pvNameGoesHere”,” Omitting... Continue reading →