Login / Register  search  syndication  about

          Ryan Farley's Blog

Ryan Farley on .NET Development with a focus on CRM Development for SalesLogix

SalesLogix Activity Types

The SalesLogix Activity & History tables use a 'Type' field to store the type of Activity. If you look at the TYPE field, you'll see that the values there are numeric values such as '262147'. This number represents the type for the given activity or history record. But for someone new to SalesLogix it might be difficult to determine how & where these types are defined.

These “types” are stored as a picklist named “Activity Types”. Take a look at the items in the picklist with the following query:

select p1.id, p1.text, p1.shorttext from picklist p1 
left outer join picklist p2 on (p1.picklistid = p2.itemid)
where p2.picklistid = 'PICKLISTLIST' and p2.text = 'Activity Types'

This query will return three columns from the picklist table. The ID, which you will find is the numeric value stored in the TYPE field of the Activity & History tables (such as “262147“), the Text field, which is the text name for the Activity Type (such as “To-Do”, “Phone Call”, etc), and the ShortText, which is the abbreviated text for the activity type (such as “TODO”, “CALL”, etc). The results of the above query will show you the following:

262156  Database Change    DBCHANGE
262150  Dialog             DIALOG
262153  Document           DOC
262154  E-Mail             EMAIL
262151  Event Selection    ESP
262155  Fax                FAX
262157  Form               FORM
262163  Literature Request LITREQ
262145  Meeting            APPT
262148  Note               NOTE
262158  OLE                OLE
262161  Page               PAGE
262162  Personal Activity  PERSONAL
262146  Phone Call         CALL
262160  Process            PROCESS
262149  Question           Q
262152  Report             REPORT
262144  Start              START
262164  Stop               STOP
262147  To-Do              TODO

Having these “types” in the picklist table make for an easy join from the activity and history tables to display the type's associated text with the history or activity items.

What's This?
Bookmark and Share

About Ryan Farley

   Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix since 2001 and believes in sharing with the community. He loves C#, Javascript, Python, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

View the SalesLogix Mobile Seveloper Series
View the SalesLogix SData Developer Series
View the Git for the SalesLogix Developer series

Related Content
   Can I Bind an Attachment to a Specific Activity in Infor CRM version 7.54?
Recently I had a user ask if they could bind an attachment to a specific Activity within Infor CRM??
Posted on Jul 07, 2015 by Dale Richter to Infor CRM Questions & Answers
   Infor CRM (formerly SalesLogix) Administrator Locked Out
I thought I had seen all the issues affecting the datalink but this was a new one. We could not login t
Posted on Jun 18, 2015 by Mark Duthoy to SalesLogix Support
   How do I remove users from my Infor CRM system (formerly SalesLogix)?
I had an Administrator ask me for the steps they needed to take in order to remove a user from the Infor
Posted on May 08, 2015 by Dale Richter to Infor CRM Questions & Answers
   Infor CRM (Formerly Saleslogix) v8.1 update 03 and 05- Uncaught Error Scheduling Contact Processes
 In the Infor CRM (formerly Saleslogix) web client, under the Contact area you have the ability to s
Posted on May 07, 2015 by Kris Halsrud to Kris Halsrud's Blog
   Better Code Organization for Infor CRM (Saleslogix) Mobile Customizations
When customizing the Infor CRM (Saleslogix) Mobile client, it's common for the ApplicationModule to g
Posted on May 05, 2015 by Ryan Farley to Ryan Farley's Blog


intech_guy said:

Thanks for the code.

I've been spending the last 2 hours pouring over SLX DB structure documentation trying to figure out how I can get something simple as the name of a picklist.

I thought it would be clearly documented, but I don't think I ever would've have gotten that the picklist names are rows in the same table as the values of each picklist.

this is all I needed to answer my question:


from sysdba.picklist

where picklistID = 'PICKLISTLIST'

Combined with your query, I can now make sure that my products always have valid models and families!

Is this approach taken in other places in SLX? while it is more space efficient than adding another column for the name, why didn't they just another table rather than reuse this one for distinct data types?

June 23, 2008 2:23 AM

Ryan Farley said:

Hello intech_guy,

The SLX Picklist is one of the only places I can think of that follows this pattern. The list definitions and the list items themselves are all together in the table. Not sure why it was originally designed this way, but that dates back to v1 of SLX.

The only other place that is similar that comes to mind are the plugins themselves. When you release a plugin, it creates a copy of it. Both the original plugin, and the new released copy exist in the plugin table.


June 23, 2008 12:41 PM

Matt said:

Hi, I have groups that appear in the Sales Client and the plugin table in the database but not in the Architect. Do you know how I can remove these views without deleting from the database tables?

If I am going to have to delete records from the database, please could you advise on the safest way to go about this without compromising the rest of the system.



January 6, 2009 9:10 AM

SLX History Types « GeoffLogix said:

Pingback from  SLX History Types «  GeoffLogix

June 29, 2010 11:44 AM

SLX History Types « GeoffLogix said:

Pingback from  SLX History Types «  GeoffLogix

June 29, 2010 11:45 AM

Katherine said:

Hi, I apologize for not being as tech savvy as you all are but I have a question related to this topic.  I am trying to create a tab/query in saleslogix that will show me all of the activities for a specific user by type.  In the type field I am getting the integer and I'd like the name to appear.  What do I need to do to make the name appear instead of the integer?  Should I create a join?  If so, what is the parent table/field and child table/field and what type of join?  Thanks for any help you can give me.  Katherine

July 7, 2010 10:49 AM

Leave a Comment

All contents Copyright © 2015 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register