Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 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: Backup History To CSV File
Kevin Austin
Posts: 105
 
Backup History To CSV FileYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 08 5:31 AM
Hi,

I've written a script that will take history and back it up to a csv file but I'm having all sorts of issues. I'm trying to follow the conventions of a csv file to the book but it always seems to mess up somewhere all the lines where it comes to the notes or description etc and I'm finding it harder and harder to pin point why. Has anyone done this before and if so can you please shed some light. I just want a csv file that will open in the majority of applications without issues.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Backup History To CSV FileYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 08 6:23 PM
Can you elucidate a little on what you mean by 'mess up'?

Is it possible that there are commas in the text fields that are being misinterpreted as delimiters?

If you look at the CSV file in Notepad, you may get a better idea of what is going on.

Phil
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Backup History To CSV FileYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 08 6:55 PM
I'd do it without any code. Use SQL SSIS or DTS. You can even just use the wizard and then save the package and run on a schedule if needed. Downside would be that it is a server-side solution only, however, you could even easily add something in to e-mail the exported CSV file to someone (or something)
[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: Backup History To CSV FileYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 08 4:44 AM
History and CSV is messy because it has lots of control characters embedded into it. If you HAVE to do a text export, you will want to set your own delimiters and then cross your fingers that nobody typed that anywhere. You might want to try using the pipe (or double) |, || since people tend NOT to use them in normal typing. You just have to tell the importing application what you are using as a separator.
[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): 8/24/2025 6:25:39 PM