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
   Video: Demystifying Infor CRM (Saleslogix) Updates
Watch it now! If you missed yesterdays demo, "Demystifying Infor CRM (Saleslogix) Updates" ,
Posted on Sep 26, 2014 by Brianna Ojard to The Inbox
 
   Thoughts on the Future and Involvement in the Saleslogix/Infor CRM Community
Over the last year and a half I've been working on another product named Contatta. It's a great p
Posted on Sep 25, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Fixing the Orphaning of Salesfusion Data when Converting Leads to Contacts in Infor CRM (Saleslogix)
We have had a couple of client recently come to other with the same problem-When you convert a Lead to a
Posted on Sep 19, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Official Infor CRM Acquisition FAQ
What to expect now that Saleslogix is Infor CRM. Like many of you, it will take some time (probably a
Posted on Sep 18, 2014 by Brianna Ojard to The Inbox
 
   ComboFix Kills Saleslogix Sync
ComboFix, a third party malware utility, will alter the Operating system so .qts and .que files will no l
Posted on Sep 12, 2014 by Brianna Ojard to SalesLogix Support
 
Comments

 

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:

SELECT ITEMID, TEXT

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.

-Ryan

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.

Cheers,

Matt

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

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 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