A LeadStage represents a lead reaching a stage in a marketing or sales pipeline. This is intended to represent progression towards a conversion This record is an immutable snapshot captured when a lead first enters a stage
Group: Database Entities
Implements: Serializable, Relational
Properties
| Property | Returns | Description |
|---|---|---|
| adminDomainId | long | The id of the account, ie the top level administrative organisation, that owns the lead. Stored as a raw id rather than an association so that reporting queries do not have to join. |
| createDate | Date | When the lead reached this stage. Listings are ordered by this descending, so the first result is the most recent stage. |
| funnelId | long | The id of the funnel, ie the journey, the lead is in. Stored as a raw id rather than an association for reporting speed. |
| id | long | The database-assigned unique identifier for this stage record. |
| leadId | long | The id of the lead this snapshot was taken from. Use it to load the lead when you need its current state, as opposed to the state captured here. |
| profileId | Long | The id of the profile on the lead at the time, stored as a raw id for reporting speed. Null when the lead was still anonymous, which is normal for the earliest stages. |
| source | String | Where the lead originally came from, for example facebook or googleAd, copied from the lead when the stage was reached. Kept here so conversion can be reported by source without loading the lead. |
| stageName | String | The name of the pipeline stage the lead moved into, as configured on the funnel. |
| trackingId | String | The lead's tracking id, copied from the lead. This is what ties the record back to the visitor's browsing session, so it is how anonymous activity is stitched to a converted lead. |
Methods
getId() · getSource() · getAdminDomainId() · getTrackingId() · getProfileId() · getCreateDate() · getStageName() · getFunnelId() · getLeadId() · rowId()
getId()
Returns: long
The database-assigned unique identifier for this stage record.
getSource()
Returns: String
Where the lead originally came from, for example facebook or googleAd, copied from the lead when the stage was reached. Kept here so conversion can be reported by source without loading the lead.
getAdminDomainId()
Returns: long
The id of the account, ie the top level administrative organisation, that owns the lead. Stored as a raw id rather than an association so that reporting queries do not have to join.
getTrackingId()
Returns: String
The lead's tracking id, copied from the lead. This is what ties the record back to the visitor's browsing session, so it is how anonymous activity is stitched to a converted lead.
getProfileId()
Returns: Long
The id of the profile on the lead at the time, stored as a raw id for reporting speed. Null when the lead was still anonymous, which is normal for the earliest stages.
getCreateDate()
Returns: Date
When the lead reached this stage. Listings are ordered by this descending, so the first result is the most recent stage.
getStageName()
Returns: String
The name of the pipeline stage the lead moved into, as configured on the funnel.
getFunnelId()
Returns: long
The id of the funnel, ie the journey, the lead is in. Stored as a raw id rather than an association for reporting speed.
getLeadId()
Returns: long
The id of the lead this snapshot was taken from. Use it to load the lead when you need its current state, as opposed to the state captured here.
rowId()
Returns: Long
The database identifier for this stage record, as the generic row id used across Kademi entities. Same value as the id.