Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 18, 2025 
 
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!
 Architect Forums - SalesLogix Scripting & Customization
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Calling legacy script using DoInvoke
Gabe Fender
Posts: 3
 
Calling legacy script using DoInvokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Apr 07 3:03 PM
Hi all,

I browsed through some of the other posts on this topic but nothing has worked for me yet. I am trying to call a legacy script from an external .net application. Here is what I have so far:

[code]
Dim slx As New SalesLogix.SlxApplication
slx.BasicFunctions.DoInvoke("activescript", "Personal:Personal:Inf Manage User Specific Picklist View btnUpdateAll_WhenClick")
slx.Quit()
[/code]

I receive the following status when printing out the InvokeStatusText:
"An unusual error has occurred when executing Personal:Inf Manage User Specific Picklist View btnUpdateAll_WhenClick. Contact your system administrator. 0x0 @0: activescript Personal:Inf Manage User Specific Picklist View btnUpdateAll_WhenClick Exception: Could not load plugin Personal:Inf Manage User Specific Picklist View btnUpdateAll_WhenClick"
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Calling legacy script using DoInvokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Apr 07 4:54 PM
A few of things that are wrong with the code sample you posted.

1) "ActiveScript" refers to a VBScript plugin. For a legacy basic script plugin you'd use "Basic".

2) The second parameter for the call to DoInvoke has "Personal:" repeated twice.

3) Don't call slx.Quit(). I assume you're wanting to "end" your session with SLX. If this is the case, just use "slx = Nothing" instead.

So, it would look like this:

Dim slx As New SalesLogix.SlxApplication
slx.BasicFunctions.DoInvoke("basic", "Personal:Inf Manage User Specific Picklist View btnUpdateAll_WhenClick")
slx = Nothing


Make sense?
[Reply][Quote]
Gabe Fender
Posts: 3
 
Re: Calling legacy script using DoInvokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Apr 07 5:23 PM
Thanks Ryan! By making those changes the script now executes, not successfully, but that's another issue to deal with...
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/18/2025 12:26:25 AM