8/18/2025 8:27:47 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Undefined variable WScript - Trying to shell to external program
Posted: 11 Jan 08 8:57 AM
|
What is wrong with this VBScript :-
option explicit sub Main 'Get the current account's SLX record Id Dim strAccountID strAccountID = application.BasicFunctions.CurrentAccountID
'Open the Works Order builder to create a new works order for the SLX account, and if there is no 'associated Sales Ledger account, create one. Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run ("""C:\Program Files\Sage\MMS\PDM.Oilsense.Launcher.exe"" wopbuilder new " & strAccountID) end sub
What I need to do is launch an exe program from a Step on a Sales Process. When I click the link on the Step, an error is displayed which is :-
An error occurred executing active script (System:WOPBuilder). Error calling method Main Variable is undefined: 'WScript' at line 9, char 5
Any help appreicated Steve Jowett
|
|
|
| |
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|