CAMPAIGNHIERARCHYGOAL (4.0SP14)

Describes a campaign hierarchy goal.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CAMPAIGNID

uniqueidentifier

false

FK to CAMPAIGN

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CURRENCYEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to organization amount.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

The name of the goal.

AMOUNT

money

false

0

The amount of the goal in the campaign's base currency.

STARTDATE

datetime

false

The date that revenue should start counting towards the goal.

ENDDATE

datetime

false

The date that revenue should stop counting towards the goal.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ORGANIZATIONAMOUNT

money

false

0

The amount of the goal in organization currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_CAMPAIGNHIERARCHYGOAL_CURRENCYEXCHANGERATEID

CURRENCYEXCHANGERATEID

False

False

False

IX_CAMPAIGNHIERARCHYGOAL_DATEADDED

DATEADDED

False

False

True

IX_CAMPAIGNHIERARCHYGOAL_DATECHANGED

DATECHANGED

False

False

False

PK_CAMPAIGNHIERARCHYGOAL

ID

True

True

False

UIX_CAMPAIGNHIERARCHYGOAL_NAME_CAMPAIGNID

NAME

CAMPAIGNID

True

False

False

Triggers
Trigger Name Description

TR_CAMPAIGNHIERARCHYGOAL_AUDIT_UPDATE

TR_CAMPAIGNHIERARCHYGOAL_AUDIT_DELETE

TR_CAMPAIGNHIERARCHYGOAL_IU_ORGANIZATIONAMOUNT

TR_CAMPAIGNHIERARCHYGOAL_AUDIT_ETLDELETEDID

Referenced by
Referenced by Field

CAMPAIGNGOAL

CAMPAIGNHIERARCHYGOALID