Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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: SalesLogix Activity Priority
Craig Herder
Posts: 4
 
SalesLogix Activity PriorityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jul 06 12:33 PM
fiogf49gjkf0d
Hi.

Does anyone know if I can set the priority of a newly created activity from the code?

Thanks,
Craig
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: SalesLogix Activity PriorityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jul 06 5:14 PM
fiogf49gjkf0d
Yes you can update the activity.priority field via custom code.

You can not modify the existing Add/Edit dialog, however you should not need to as the Prioroty field is already on the dialog.

[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: SalesLogix Activity PriorityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jul 06 1:42 AM
fiogf49gjkf0d
I'm guessing but do you mean the default priority? BasicFunctions.CreateActivity doesn't have a parameter for priority. You can trick the Add/Edit screen into picking a default by changing the priority picklist's default value. By playing with the picklist properties of the other fields, you can somewhat scuplt how the activity is going to turn out.
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: SalesLogix Activity PriorityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jul 06 7:42 AM
fiogf49gjkf0d
Based on the CreateActivity, it's easy to go back and change any data within the activity...

dim LstrActivityID
LstrActivityID = CreateActivity("Meeting", LstrContactID, "", "", "", LstrUserID)

Create the data connection and modify any field within the activity where the ActivityID = LstrActivityID

We have an application that schedules jobs for Omnirush and utilize CreateActivity to create the UPS job, then go back and change the category to '_UPS'. Works like a charm.

Ron Buchanan
SEI
800-849-6436
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: SalesLogix Activity PriorityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 06 10:20 AM
fiogf49gjkf0d
You can also use the System:OnCompletedActivity or the System:OnScheduledActivity scripts. These scripts will fire when an activity is completed or scheduled. Using these will ensure that you can set the priority for an activity whether you launched the activity screen (via CreateActivity) or if it was launched from some other menu/toolbar/etc.

So, if you use the OnScheduledActivity scripts, you get the activityid of the activity just scheduled, and then you can follow it up with a trip to the database to set some default priority. Not quite as good since it does it after the fact (the user would never see your priority when they were scheduling the activity since it is set after the screen closes), but the alternative would be to add the activity data to the database first, and then call EditActivity to bring it up on screen (which is also not quite the same)

-Ryan
[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 © 2024 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): 11/26/2024 11:33:00 AM