Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 25, 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: Create Ticket ID
Mabo
Posts: 21
 
Create Ticket IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 07 6:10 AM
fiogf49gjkf0d
Hi,

how to create a Ticket ID.

A Ticket ID consists out of 2 values. The Alternatekeyprefix and to Alternatekeysuffix. Alternatekeysuffix is an autonumber value. But how to generate the Alternatekeyprefix? Or is this an autonumber value too?

So that :

001-00-999999
following by
001-01-000000

And
001-99-999999
following by
002-00-000000

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Create Ticket IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 07 7:11 PM
fiogf49gjkf0d
This post is a bit old so has the legacy code to do it (See http://saleslogixblog.com/rfarley/archive/2004/08/22/984.aspx), but the bottom of the post mentions the new/correct way to do it in 6.2 and higher:

Application.BasicFunctions.GetPrettyKeyPrefix
Application.BasicFunctions.GetPrettyKeySuffix
[Reply][Quote]
Kris Halsrud
Posts: 88
 
Re: Create Ticket IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Mar 07 9:48 AM
fiogf49gjkf0d
Based on the format you have provided, I think that you must be on the newer version of SLX that utilizes the application.basicfunctions.getprettykeysuffix and prefix.

However, to do what you have posted would not be available in the results returned from those functions. The results of those functions returns the first 001-00 portion of the key, is based upon the site code and key base of the system generating the ID. The last part of the ID is based on a numeric equivalent of the right 5 digits of the hexidecimal TICKETID primary table key generated by SalesLogix.

In order for you to increment with your desired sequencing you would need to develop a counter function and call upon that instead. You solution would have problems if remote or remote office users were creating tickets, as their "counters" would be disparate from the other counters on the central or other remote user's databases.
[Reply][Quote]
Zaurusman
Posts: 44
 
Re: Create Ticket IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 3:53 PM
Which keydesc value in sitekeys holds the hexadecimal value for this or, if it's easier, how do you get Scribe to put this data in when inserting into ticket? When I insert new records via Scribe it calculates the ticketid, but leaves alternatekeyprefix and suffix empty. Or, is there a place where we can track down the code behind GetPrettyKeySuffix and Prefix?

This is for 7.0.1. Because Scribe isn't generating that for me when inserting I'm looking to either get it to somehow or do it in a trigger once it's inserted.

TIA
[Reply][Quote]
Kris Halsrud
Posts: 88
 
Re: Create Ticket IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Aug 08 5:02 PM
Just a follow up to my post. The first part of the prefix (i.e. 001 of the 001-00) is based of the following query

SELECT SITEOPTIONS.KEYPREFIX,SITEOPTIONS.SITECODE,SYSTEMINFO.SYSTEMINFOID FROM SITEOPTIONS, SYSTEMINFO WHERE SITEOPTIONS.SITECODE = SYSTEMINFO.SITECODE AND SYSTEMINFO.SYSTEMINFOID = 'PRIMARY'

The second part of the prefix is based off the remote's Keybase (i.e. a keybase of A1 = 01, A2 = 02, etc.)
[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/25/2025 1:09:49 AM