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. |