Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: Need to delete attachments via script
Elli Davidi
Posts: 2
 
Need to delete attachments via scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 11 10:51 AM
fiogf49gjkf0d

I need to delete 1000+ attachments (from the tables and disk).  Doing it from the client is difficult as you have to navigate to each account and delete them one by one.  From a script, using the DeleteFileAttachment function deletes the attached file reference from the database and launches a dialog box that provides the option to delete the file from the hard drive.  Is there a way to get around the dialog box?


Thanks in advance


 

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Need to delete attachments via scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 11 12:27 PM
fiogf49gjkf0d

Do you have remote users? Or, If you have remotes, do you care about the Files being left behind on the Remote User's machine?


If not, you could just use an External VB Script that does the following:


- Deletes the file associated with the Attachment(s)


- Delete the DB Entry associated with the Attachment(s)


 

[Reply][Quote]
Elli Davidi
Posts: 2
 
Re: Need to delete attachments via scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 11 1:15 PM
fiogf49gjkf0d

Yes, I do have remote users...  I am being asked to have the files deleted from the remotes as well.  It would be a piece of cake if I could leave the files on the remotes; just delete the recods from the attachment table ore delete the files and run the integrity chacker.   - Thanks

[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): 2/23/2025 7:10:29 PM