Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 28, 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: Simple update of Contact status
Joe
Posts: 14
 
Simple update of Contact statusYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 09 2:24 PM
My requirement is simply to change the status of all contacts to "Inactive" if there have been no History updates for the contact in the last six months.

I know how to do this directly on the SQL Server tables. However, I assume doing it through this "brute force" method may harm the integrity of SalesLogix (I don't know what business rules I would be bypassing). I would like to know what API I should be using to do this. I'm assuming the "Execute SQL" tool in Administrator would be the equivalent of running the SQL Statements directly on the SQL Server (or does it enforce business rules?).

This needs to be run once a month manually. It could be something in the UI (a button or menu item) or an external EXE or script, doesn't really matter.

I'm an experienced programmer and have worked with API's of other programs (Accounting systems, etc.), I'm just not familiar with the SalesLogix API's and would like a pointer to what is most relevant to my needs.

Thanks in advance.
[Reply][Quote]
Joe
Posts: 14
 
Re: Simple update of Contact statusYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 09 2:28 PM
Just reread my requirements and actually they want it as a menu item on the UI, so looks like I need to learn how to customize the UI.

And the SalesLogix version is 7.2.2
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Simple update of Contact statusYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 09 2:36 PM
You could achive this by using an SQL statement as long as it can be parsed by the SalesLogix Provider.

The Execute SQL functionality within the Administrator will send the statement via the provider, so you could use it to validate your statement.

Once you have a workable SQL statement, all you would want to do is execute it against the Database via the SalesLogix OLEDB provider (you could use ADO or ADO.NET to do this).
[Reply][Quote]
Joe
Posts: 14
 
Re: Simple update of Contact statusYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 09 2:58 PM
Ahh, so the OLE DB provider prevents me from harming the integrity of the database.
Thanks!
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Simple update of Contact statusYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 09 5:33 PM
It doesn't protect you from harming the Integrity of the database per se, but handles synchronization.
I guess that is also "integrity" as ensuring that all users get accurate data.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Simple update of Contact statusYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Apr 09 8:03 PM
Whenever you have a requirement in SLX where you think there may be business rules in place, one thing to do is to run SLX Profiler and then perform the update manually through the SLX client, watching the SQL that is issued. Analysis of this SQL will highlight any additional logic or updates and put your mind at rest.
[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/28/2025 4:05:19 PM