OBJECTIVE |
nvarchar(100) |
|
Default = '' |
|
EXPECTEDDATE |
datetime |
|
|
|
ACTUALDATE |
datetime |
yes |
|
|
DATE |
datetime (Computed) |
yes |
coalesce(ACTUALDATE,EXPECTEDDATE) |
|
STATUSCODE |
tinyint |
|
Default = 0 |
0=Planned, 1=Pending, 2=Completed, 3=Unsuccessful, 4=Cancelled, 5=Declined |
COMMENT |
nvarchar(max) |
|
Default = '' |
|
ISINTERACTION |
int (Computed) |
|
case when INTERACTIONTYPECODEID is null then 0 else 1 end |
|
DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
TS |
timestamp |
|
|
Timestamp. |
TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
COMPLETED |
int (Computed) |
|
case when STATUSCODE in (2,3,4,5) then 1 else 0 end |
|
CUSTOMIDENTIFIER |
nvarchar(100) |
|
Default = '' |
User-definable custom identifier. |
SEQUENCEID |
int |
|
|
Identity column used to increment the default lookupid. |
LOOKUPID |
nvarchar(100) (Computed) |
yes |
(CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN '8-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) |
Unique identifier that supports user defined values as well as system generated values. |
ISCONTACTREPORT |
int (Computed) |
|
case when INTERACTIONTYPECODEID is not null and PROSPECTPLANID is not null and STATUSCODE = 2 and len(COMMENT) > 0 then 1 else 0 end |
An interaction is a contact report when it has a contact method, is a plan step, is completed, and has a comment |
EXPECTEDSTARTTIME |
UDT_HOURMINUTE |
|
Default = '' |
Expected starting time of the interaction. |
EXPECTEDENDTIME |
UDT_HOURMINUTE |
|
Default = '' |
Expected ending time of the interaction. |
ISALLDAYEVENT |
bit |
|
Default = 1 |
Flags this interaction as all day. |
ACTUALSTARTTIME |
UDT_HOURMINUTE |
|
Default = '' |
Actual starting time of the interaction. |
ACTUALENDTIME |
UDT_HOURMINUTE |
|
Default = '' |
Actual ending time of the interaction. |
STARTTIME |
char(4) (Computed) |
yes |
coalesce((case when ACTUALSTARTTIME = '' then null else ACTUALSTARTTIME end),EXPECTEDSTARTTIME) |
|
ENDTIME |
char(4) (Computed) |
yes |
coalesce((case when ACTUALENDTIME = '' then null else ACTUALENDTIME end) ,EXPECTEDENDTIME) |
|
EXPECTEDSTARTDATETIME |
datetime (Computed) |
yes |
dateadd(mi, convert(tinyint, substring(EXPECTEDSTARTTIME, 3, 2)), dateadd(hh, convert(tinyint, substring(EXPECTEDSTARTTIME, 1, 2)), convert(datetime, convert(date, EXPECTEDDATE)))) |
The expected start date and time of the interaction. |
EXPECTEDENDDATETIME |
datetime (Computed) |
yes |
dateadd(mi, convert(tinyint, substring(EXPECTEDENDTIME, 3, 2)), dateadd(hh, convert(tinyint, substring(EXPECTEDENDTIME, 1, 2)), convert(datetime, convert(date, EXPECTEDDATE)))) |
The expected end date and time of the interaction. |
ACTUALSTARTDATETIME |
datetime (Computed) |
yes |
dateadd(mi, convert(tinyint, substring(ACTUALSTARTTIME, 3, 2)), dateadd(hh, convert(tinyint, substring(ACTUALSTARTTIME, 1, 2)), convert(datetime, convert(date, ACTUALDATE)))) |
The Actual start date and time of the interaction. |
ACTUALENDDATETIME |
datetime (Computed) |
yes |
dateadd(mi, convert(tinyint, substring(ACTUALENDTIME, 3, 2)), dateadd(hh, convert(tinyint, substring(ACTUALENDTIME, 1, 2)), convert(datetime, convert(date, ACTUALDATE)))) |
The Actual end date and time of the interaction. |
STATUS |
nvarchar(12) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Planned' WHEN 1 THEN N'Pending' WHEN 2 THEN N'Completed' WHEN 3 THEN N'Unsuccessful' WHEN 4 THEN N'Canceled' WHEN 5 THEN N'Declined' END |
|
LOCATION |
nvarchar(300) |
|
Default = '' |
|