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: Record IDs beginning with "S"
Jeff Ballard
Posts: 326
 
Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 11:40 AM
fiogf49gjkf0d

I have two address records (not many in the scheme of things) that have an entity ID that starts with the letter "S". What entity is that or is this some hand rolled data someone put in for testing? It appears to be a valid ID, but I can't seem to figure out what entity it belongs to.


Jeff


 

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 12:11 PM
fiogf49gjkf0d

Hey Jeff,


Did you already check the SITEKEYS table for entries that begin with an "S"? I'd start there, but I don't recall ever seeing an ID scheme that starts with "S" before. I'd guess it was hand rolled.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 12:59 PM
fiogf49gjkf0d

The S is for SQL  (Not sure what Table that would be), but this is based on the SlxIdGenerator class from the Web Client:


AddKeyMapEntry("SQL", TableIdType.idSQL, 'S', "SQL");


 


 


Here is the full Map of Tables:


 



USERSECURITY U


ACCOUNT A


OPPORTUNITY O


CONTACT C


ASSOCIATION B


ACTIVITY V


HISTORY H


EVENT E


USERNOTIFICATION n


PROCESS P


RESOURCESCHEDULE r


SECPROFILE F


SECRIGHTS I


SECENTITY N


SECTRANS T


AGENTS K


LIBRARYDIRS D


LIBRARYDOCS d


RESOURCELIST R


LEADSOURCE L


COMPETITOR Z


PRODUCT Y


ADDRESS a


OPPORTUNITY_CONTACT J


USEROPTION v


OTHER Q


QUOTA q


SQL S


JOINDATA j


PLUGIN p


PICKLIST k


SLXBUNDLE b


TICKET t


CONTRACT c


PROCEDURES X


RMA m


DEFECT f


ATTACHMENT Q


TEFFILE Q


SEC_FUNCTIONOWNER W


PRETTYKEYGENERATOR x



[Reply][Quote]
Lane
Posts: 121
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 1:01 PM
fiogf49gjkf0d

Look in the join data table to see what "other" tables are linked with the address field you are looking at.


Then scan the related tables for the ID's in question.


Either you exceeded the "Q" ID's list and then it moves through a list, that i can't remember, and you'll find the key in another table or its bugus data.


If its in the address.entityid field, it could be from several tables or customizations (joindata will tell you)


If its the addressid field itself, then you've exceeded the Q key and moved to the "S" or is bogus


 

[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 1:21 PM
fiogf49gjkf0d

Doh! Been so long I forgot about the "KEYDESC" column in sitekeys. I did look at the table and looked at KEYTYPE and ignored KEYDESC. There is a record for "S" in theKEYDESC column with a KEYTYPE of 11. I have no idea what 11 maps to, though.


Because I could, I wrote a quick console app that loops through every table in information_schema and had it generate a single ID for that table. None returned an ID that started with an S. Odd, since it's in sitekeys.


At least I know I can ignore it.


Jeff


 

[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 1:24 PM
fiogf49gjkf0d

Raul,


Interesting. You posted as I was writing my app. Curious as to what it's used for. I used QueryExpress to run slx_dbids("SQL", 1) and sure enough, it came back with an "S" ID.


Thanks,


Jeff


 

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 1:37 PM
fiogf49gjkf0d

When SalesLogix generates IDs, it doesn't match to the Sitekeys based on the KeyDesc column, but rather on the KeyType.


 


Internally it keeps a Table (or enumeration) that lists the known Tables and their Key Types.


So, if a you want a New ID for the Account Table, it checks the list and figures out that the KeyType will be 1.


If the table doesn't have a matching value, it defaults to KeyType 25 (Other).


 


My Sitekeys also has an Entry with KeyType 11 that has a KeyDesc of S, however that entry is for the SECPROFILE table, and its ID prefix is "P" not "S".


As shown on the Table I built from the Web Client, KeyType 27 is associated with a table name called "SQL" (which I can't find anywhere), and that shows to have a Prefix of "S".


 


 


That said, it is always possible for someone to Generate Such ID manually to avoid conflicts during some sort of Data Manipulation.


I have done so myself when Merging Data from multiple DBs with the Same SiteCode, or when having to copy a given row.


 


The Reason for the Prefix is for Consistency and Order, but there is no Constraint that forces a given table to use a Given Prefix.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 1:44 PM
fiogf49gjkf0d

Try this code on your SalesLogix Windows Client:


 


MsgBox Application.BasicFunctions.GetIdFor("SQL")


 


  The returned ID will begin with S.   This is the response I got on my system:  S6UJ9A000001


 


Also, right after running this code, a new Entry got added to my SITEKEYS table with KeyType = 27 and KeyDesc = "S" (now I have two rows with S as the KeyDesc, but as described above, SLX doesn't use the KeyDesc for ID Generation).

[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Record IDs beginning with "S"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 11 1:45 PM
fiogf49gjkf0d

I'm familiar with sitekeys and it's purpose but I'd just never seen the "S" before and couldn't figure out where it came from. I wasn't familiar with the SlxIdGenerator  - I haven't worked much with the SLX web version that uses it (actually any form of SalesLogix) for several years. We have a new customer that's on SLX but moving to MS CRM and I'm doing data mapping and that "S" ID threw me for a loop. Since I only have two records that are "S" IDs I'm going to ignore them.


Jeff



[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 3:45:32 PM