Creating Pretty Prefixes and Suffixes in the SalesLogix web client

In the SalesLogix web client you may run across a reason you need to generate a “Pretty Key”.  This is what the SalesLogix Ticket Number is.  This key is a combination of a Pretty Prefix and a Pretty Suffix.  The Prefix is an equivalent to a system’s site code and the Suffix is a numerical equivalent to a primary table ID.

To generate these you can simply call the functions in the Sage.SalesLogix.System.dll for each.  Each function expects an input of the Primary ID of the record to generate a key based on, like this:

Sage.SalesLogix.PrettyKey.GetPrettyKeyPrefix(account.Id.ToString());

Sage.SalesLogix.PrettyKey.GetPrettyKeySuffix(account.Id.ToString());

Be aware that the Sage.SalesLogix.System.dll is not a default assembly for C# Code Snippets so you may need to add it as a reference.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

1 Comment

  1. Is it possible to have an example shown? Please.

    Reply

Leave a Reply to Alex Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!