SendKeys doesn’t work in BSL customizations in Dynamics SL 2015

An upgraded BSL (Basic Script Language) customization that used SendKeys displayed System Message 10058 “Basic Script Language execution error 5 – Illegal function call” when the code reached the line with SendKeys in Dynamics SL 2015. SendKeys was used correctly and the customization worked fine in the previous version. It still appears in the BSL documentation for Dynamics SL 2015, but the interpreter calls it an “illegal function” now. The resolution, in this case, was to “upgrade” the customization to... Continue reading →

Solomon Object Model Error 7579

This isn’t documented anywhere that I could find, so I thought I’d do that here. When running an application that used the Solomon Object Model (SOM) to automate a screen in Dynamics SL, I received Dynamics SL error 7579 when calling StartAppAndAutomate(). The function did not return a reference to the application. The problem was that the Microsoft.Dynamics.SL.ObjectModel.dll was not in the expected location, which is C:\Program Files (x86)\Common Files\Microsoft Shared\DynamicsSL. I copied it from the \SL\Applications\WRKSTN\Common folder to the... Continue reading →

Dynamics SL 2015 Customization Upgrade Gotcha

I had a great time attending the Dynamics SL User Group in San Antonio this week! Thanks to everyone who worked to hard to make it an informative and fun event!!! In an interactive session with SL developer legend, Tom Malia, he mentioned a gotcha while upgrading VBA customization code to version 2015. Tom said he had been frustrated and searched the internet to no avail for help with the issue. I ran into the same thing earlier myself and... Continue reading →

Dynamics SL Application Server

I recently wrote a new SL SDK form intended to be launched by Dynamics SL Application Server. When selecting “Submit to Application Server” from the form’s menu, I got System Message 5601 “The targeted application… does not comply with the Application Server requirements and cannot be submitted to an Application Server for processing.” I was puzzled. The official documentation speaks of running “processes and reports” via the Application Server, but nothing more specific. The resolution for this is simple, really.... Continue reading →

Pin Dynamics SL to the Taskbar

Dynamics SL typically runs from a mapped network drive. When it does the “Pin to Taskbar” option does not appear when you right-click. This article explains how to pin it. The name of the .exe to copy locally and make a shortcut to in order to pin to the taskbar is MSDynamicsSL.exe, found in the Applications directory on the mapped network drive.

Adding the Dynamics SL CodeInspector to VS2013

If you install Visual Studio 2010 before installing the Dynamics SL 2011 client, the SL client install copies the CodeInspector.Addin file from its default location of C:\Program Files (x86)\Common Files\microsoft shared\DynamicsSL to My Documents\Visual Studio 2010\Addins and changes the Version XML element from 8.0 to 10.0. If you install Visual Studio 2013 and want to use the CodeInspector, you’ll need to copy this file to My Documents\Visual Studio\Addins (creating the Addins folder if Visual Studio hasn’t already created it). You... Continue reading →