HIST_LEAD_HISTORY Table

Added in Version 7.5

The HisT_LEAD_HISTORY table stores all completed activities for Leads when a user deletes a Lead.

  • If you applied the SLX Indexes for MS SQL.sql script to your database, your index information may be different than described in this topic.  For more information, see the Index Changes.pdf document.

  • While this table does not have a field defined as a primary key, the HIST_LEAD_HISTORYID field should be unique and considered a primary key.

Legend
 

Field Datatype (Length) Allow Nulls Indexes Relationship Related Table and Field

HIST_LEAD_HISTORYID

char(12)

NOT NULL

HIST_LEAD_HISTORY_PRIMARY (AK)

 

 

HIST_LEADID

char(12)

NOT NULL

HIST_LEAD_HISTORY_HIST_LEADID (IE)

(One) to (Many)

HIST_LEAD.HIST_LEADID

CREATEUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERINFO.USERID

CREATEDATE

datetime(8)

NULLS

 

 

 

MODIFYUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERINFO.USERID

MODIFYDATE

datetime(8)

NULLS

 

 

 

ACTIVITYBASEDON

char(12)

NULLS

 

(Many) to (One)

ACTIVITY.ACTIVITYID or HISTORY.HISTORYID

ACTIVITYID (FK)

char(12)

NULLS

HIST_LEAD_HISTORY_ACTIVITYID (IE)

(Many) to (One)

ACTIVITY.ACTIVITYID

ATTACHMENT

varchar(1)

NULLS

 

 

 

CATEGORY

varchar(64)

NULLS

 

 

 

COMPLETEDDATE

datetime(8)

NULLS

HIST_LEAD_HISTORY_COMPLETEDAT (IE)

 

 

COMPLETEDUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERSECURITY.USERID

DESCRIPTION

varchar(64)

NULLS

 

 

 

DURATION

int(4)

NULLS

 

 

 

HISTORYID (FK)

char(12)

NULLS

HIST_LEAD_HISTORY_HISTORYID (IE)

(Many) to (One)

HISTORY.HISTORYID

LONGNOTES

text

NULLS

 

 

 

NOTES

varchar(255)

NULLS

 

 

 

OPPORTUNITYID (FK)

char(12)

NULLS

 

(Many) to (One)

OPPORTUNITY.OPPORTUNITYID

OPPORTUNITYNAME

varchar(64)

NULLS

 

 

 

ORIGINAL_CREATEDATE

datetime(8)

NULLS

 

 

 

ORIGINAL_CREATEUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERINFO.USERID

ORIGINAL_MODIFYDATE

datetime(8)

NULLS

 

 

 

ORIGINAL_MODIFYUSER (FK)

char(12)

NULLS

 

(Many) to (One)

USERINFO.USERID

ORIGINALDATE

datetime(8)

NULLS

 

 

 

PRIORITY

varchar(64)

NULLS

 

 

 

PROCESSID (FK)

char(12)

NULLS

HIST_LEAD_HISTORY_PROCESSID (IE)

(Many) to (One)

PROCESS.PROCESSID

PROCESSNODE

varchar(16)

NULLS

 

 

 

RECURRING

varchar(1)

NULLS

 

 

 

RESULT

varchar(64)

NULLS

HIST_LEAD_HISTORY_RESULT (IE)

 

 

RESULTCODE

varchar(8)

NULLS

 

 

 

STARTDATE

datetime(8)

NULLS

HIST_LEAD_HISTORY_STARTDATE (IE)

 

 

TICKETID (FK)

char(12)

NULLS

 

(Many) to (One)

TICKET.TICKETID

TICKETNUMBER

varchar(64)

NULLS

 

 

 

TIMELESS

varchar(1)

NULLS

 

 

 

TYPE

int(4)

NULLS

HIST_LEAD_HISTORY_TYPE (IE)

 

 

USERDEF1

varchar(255)

NULLS

 

 

 

USERDEF2

varchar(255)

NULLS

 

 

 

USERDEF3

varchar(255)

NULLS

 

 

 

USERID (FK)

char(12)

NULLS

HIST_LEAD_HISTORY_USERID (IE)

(Many) to (One)

USERSECURITY.USERID

USERNAME

varchar(64)

NULLS