Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 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: Complete Activities via script?
Jill D
Posts: 31
 
Complete Activities via script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 10 1:40 PM
We have a list of activities. The list is imported to an unassociated table (import history). We are capturing ActivityID and a date/timestamp. Can we complete the activities in the list via a script? (bypass the complete activity form) using the timestamp from the table for complete date (rather than "As Scheduled or Now) SLX 7.2

thanks!

J.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Complete Activities via script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 10 2:50 PM
Completing an Activity typically means Creating a matching record on the History table and deleting the Original Activity (if it is a recurring Activity, then you have more things to keep in mind, and may not be able to perform via scripting).

The history table has a matching field for every field on the Activity table, and additionally it has field for Result.
You can create a script that copies the Activity records into History, and then deletes the Activity, thus marking it as Completed. While creating the History record, don't forget to set the Completed Date, Completed User and Result fields.
[Reply][Quote]
Jill D
Posts: 31
 
Re: Complete Activities via script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 10 4:04 PM
Thanks Raul,

We were hoping there was a function we could call (isn't SLX calling a function via the Complete Activity form?) but if we are just doing an insert and delete, it's not too bad. These are not recurring activities, so it shouldn't be a big deal.

Have a great weekend!
j
[Reply][Quote]
Dan Carvin
Posts: 227
 
Re: Complete Activities via script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 10 4:17 PM
Jill,

I don't have access to my Developers Guide at the moment, but I know there is a section on Application.Activities. Take a look at that and see if there is a way to complete activities by script without manually doing all the stuff Raul referred to.

Dan
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Complete Activities via script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 10 8:06 PM
I have looked in the 7.5 version of the Guide and don't see any such function that would allow you to do this.


[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): 7/8/2025 4:55:43 AM