Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 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: Run SLX script on a nightly basis..
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 8:54 AM
I have an slx script that updates a bunch of totals nightly. I was planning on running it as an agent each night, but it is failing when autosync occurs. I have run the script from within SLX with no problems.

Is there an alternative way to run an slx script nightly other than with an agent? It is it possible to call slx scripts from KS? Thanks
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 10:23 AM
Steve,
Does you script make any call to things that live in the SalesLogix.exe? Things like Application.Basic... If so it will fail because the SalesLogix.exe is not in memory. Could this be what is happening?

[Reply][Quote]
Darren Savery
Posts: 51
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Sep 07 2:52 AM
I don't know about running them directly within SLX, but I use Scribe Insight (www.scribesoft.com). I use it to do batch scripts on a scheduled basis. Even better is that it can then pump that data out to other systems automatically.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 07 6:57 AM
Quote:
Originally posted by Steve Knowles

I have an slx script that updates a bunch of totals nightly. I was planning on running it as an agent each night, but it is failing when autosync occurs. I have run the script from within SLX with no problems.

Is there an alternative way to run an slx script nightly other than with an agent? It is it possible to call slx scripts from KS? Thanks


Sure.. it's called Windows Task Scheduler...
--
rjl
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 07 8:03 AM
Or a scheduled SQL Agent job running a DTS/SSIS package.

You just don't have access to the Application object.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 07 10:49 AM
Quote:
Originally posted by Phil Parkin

Or a scheduled SQL Agent job running a DTS/SSIS package.

You just don't have access to the Application object.


This is the route I would suggest. There is a lot of power there that is fairly easy to use. Not only that, but it is a powerful tool that you already own , (yet so few people seem to take advantage of it).
[Reply][Quote]
Eric Hobbs
Posts: 28
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Sep 07 3:45 AM
I have had similar problems with Agents in the past. As Ryan Mentioned, DTS/ SSIS is really good for this type of work. Specifically I use it to clear down user created groups over thirty days old, move data from the SalesLogix database to a data mart for Business Objects analyses and a few other odd tasks.

One thing to keep in mind, when using DTS is that unless you make your connections through the SalesLogix provider, your changes won't synch to remotes. I hope that's not trying to teach you to suck eggs, but it bears repeating anyway. Also, if you need to generate SLX ID's in DTS/SSIS there are some good examples on this site in the OLE DB Provider aritcle section.

[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Sep 07 8:06 AM
I am quite sure it is the application object that is causing the problem. Looks like I will be rewriting my script.
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Sep 07 8:07 AM
RJ, do you know of way to run a SLX script with Windows Task Scheduler?
[Reply][Quote]
Paul Pacun
Posts: 48
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Sep 07 10:59 AM
I would think you could save the script as a .vbs file and then run this with the scheduler. You will most likely have to add a call to the saleslogix object to get it to login and connect but I don't think its rocket science. It would depend on the scripting (my system is 6.2 so its still vbs).
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Sep 07 7:08 AM
Quote:
Originally posted by Paul Pacun

I would think you could save the script as a .vbs file and then run this with the scheduler. You will most likely have to add a call to the saleslogix object to get it to login and connect but I don't think its rocket science. It would depend on the scripting (my system is 6.2 so its still vbs).


You are correct.. but there's an issue w/trying to use "SalesLogix". Just create a connection to the "provider" and it's just "ADO" after that.

You can create a connection using a .udl file very easily (I think someone's posted about this before.. but in case ...:
A - Create a txt file on the desktop
B - Change the extension from .txt to .udl
C - Double click on it and it will launch the datalink dialog
D - Pick the SalesLogix OLEDB Provider
E - Fill out the info like you would as if you were connecting up s SalesLogix Client app and save it (w/password)
You can refer to this udl in the connection string or just put the contents into a connection string.
ex: objConn.ConnectionString = "FileName=\\SLXSrver\SLX\SalesLogix.udl;"

--
rjl
[Reply][Quote]
Ian Fitzpatrick
Posts: 146
 
Re: Run SLX script on a nightly basis..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Sep 07 5:46 PM
Is there any way aroung saving the password in the .udl in human readable form?
[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/20/2025 2:44:20 PM