Your Lead to Cash Data Template

Pipedrive
Your Lead to Cash Data Template

Your Lead to Cash Data Template

This template provides a clear roadmap for collecting the crucial data needed to analyze your Lead to Cash process in Pipedrive. It outlines the essential attributes and key activities to track, along with practical guidance on how to extract this information directly from your Pipedrive system. Leverage this resource to prepare your data for comprehensive process mining and optimization.
  • Recommended attributes to collect
  • Key activities to track
  • Pipedrive extraction guidance
New to event logs? Learn how to create a process mining event log.

Lead to Cash Attributes

These recommended data fields are essential for building a robust event log, enabling a comprehensive analysis of your Lead to Cash process.
3 Required 4 Recommended 14 Optional
Name Description
Activity Name
ActivityName
The name of the specific business event or task that occurred within the sales process.
Description

This attribute describes a single step in the Lead to Cash process, such as 'Deal Created', 'Proposal Sent', or 'Payment Received'. Activities are the fundamental building blocks used to visualize the process flow.

Analyzing the sequence and frequency of activities helps identify the most common process paths, bottlenecks where work queues up, and any deviations from the standard sales procedure. This is essential for understanding how the process is actually executed.

Why it matters

It defines the steps in the process, allowing for the visualization and analysis of the process flow, identification of bottlenecks, and conformance checking.

Where to get

This is typically derived by mapping Pipedrive events, such as deal stage changes or the creation of related objects like invoices, to a defined list of activities.

Examples
Deal CreatedProposal SentDeal WonInvoice SentPayment Received
Event Time
EventTime
The timestamp indicating when the activity occurred.
Description

The Event Time, or Start Time, captures the precise date and time that a specific activity was recorded. This temporal data is essential for ordering events chronologically and calculating durations between different process steps.

In analysis, this timestamp is used to calculate key performance indicators like cycle time, processing time, and wait time. It enables the creation of time-based dashboards that monitor performance and identify delays within the sales process.

Why it matters

This timestamp is critical for ordering events, calculating process durations, and analyzing performance against time-based targets.

Where to get

Retrieved from fields like 'add_time' or 'update_time' on Deal, Activity, or related objects in the Pipedrive API.

Examples
2023-04-15T10:00:00Z2023-04-16T14:30:00Z2023-05-01T09:05:00Z
Sales Opportunity
SalesOpportunityId
The unique identifier for a sales opportunity, serving as the case ID for tracking the entire Lead to Cash process.
Description

The Sales Opportunity ID is the primary key that connects all related activities, from initial lead creation to final payment. It represents a single potential sale being tracked in Pipedrive.

In process analysis, this identifier is crucial for reconstructing the end-to-end journey of each deal. It allows for the grouping of all events, such as 'Deal Created', 'Proposal Sent', and 'Payment Received', into a coherent case, enabling the analysis of process variants, cycle times, and conversion rates.

Why it matters

This identifier is the foundation of the process view, linking all related events to form a complete case history for each sales deal.

Where to get

Retrieved from the 'id' field of the Deal object via the Pipedrive API.

Examples
12543125441254512546
Deal Owner
DealOwner
The sales representative responsible for managing the sales opportunity.
Description

The Deal Owner is the user assigned to a specific deal. This attribute is key to understanding resource allocation and performance within the sales team.

This attribute enables performance analysis at the individual or team level. Dashboards can be filtered by Deal Owner to compare metrics like sales cycle time, conversion rates, and average deal value, helping to identify top performers and areas for coaching.

Why it matters

Enables performance analysis by sales representative, helping to identify top performers and areas needing improvement.

Where to get

Retrieved from the 'user_id' field on the Deal object, which links to the User object in the Pipedrive API.

Examples
John SmithJane DoePeter Jones
Deal Status
DealStatus
The current outcome or state of the deal, such as won, lost, or open.
Description

Deal Status indicates the final outcome or current high-level state of a sales opportunity. This is a primary dimension for analyzing sales success rates and process efficiency.

This attribute is fundamental for calculating win/loss rates and for filtering the process map to compare the journeys of won deals versus lost deals. This comparison often reveals key differences in process execution that contribute to success or failure, providing valuable insights for process improvement.

Why it matters

It is essential for calculating win/loss rates and comparing the process flows of successful versus unsuccessful deals.

Where to get

Retrieved from the 'status' field of the Deal object in the Pipedrive API.

Examples
wonlostopen
Deal Value
DealValue
The total monetary value of the sales opportunity.
Description

Deal Value represents the potential or actual revenue associated with a sales opportunity. It is a fundamental metric for prioritizing deals and assessing the financial impact of the sales pipeline.

In process analysis, this attribute is used to segment cases by financial size, enabling comparisons of process execution for high-value versus low-value deals. It is also a core component of dashboards that analyze sales performance, discounting effectiveness, and overall revenue generation.

Why it matters

It allows for financial analysis of the sales process, helping to prioritize high-value deals and understand revenue impact.

Where to get

Retrieved from the 'value' field of the Deal object in the Pipedrive API.

Examples
5000.0025000.501500.75
Discount Percentage
DiscountPercentage
The discount percentage applied to the deal.
Description

This attribute represents the percentage discount given on a sales deal, if any. It is a critical factor in understanding pricing strategy and its impact on profitability.

Analyzing the Discount Percentage helps in evaluating the effectiveness of discounting strategies. It can be correlated with other attributes like Deal Value, Sales Representative, or Product to see where discounts are most common and whether they lead to higher win rates or simply erode margins.

Why it matters

This is crucial for analyzing pricing strategies, sales margins, and the overall profitability of deals.

Where to get

This is often a custom field on the Deal object in Pipedrive. Consult Pipedrive documentation for custom field setup.

Examples
0.050.100.150.0
Deal Currency
DealCurrency
The currency associated with the deal value.
Description

This attribute specifies the currency, for example, USD, EUR, or GBP, in which the Deal Value is denominated. It provides necessary context for all financial metrics.

When analyzing deals from multiple regions or countries, this attribute is essential for correct financial reporting and aggregation. It ensures that currency conversions can be applied correctly before summarizing financial data, preventing inaccurate conclusions.

Why it matters

Provides essential context for the Deal Value, ensuring accurate financial analysis and reporting across different regions.

Where to get

Retrieved from the 'currency' field of the Deal object in the Pipedrive API.

Examples
USDEURGBP
Deal Stage
DealStage
The specific stage of the sales pipeline the deal is currently in.
Description

The Deal Stage represents a specific step in a company's defined sales pipeline, such as 'Qualified', 'Proposal Made', or 'Negotiation'. It provides a more granular view of a deal's progress than the overall Deal Status.

Analyzing deal stages is crucial for understanding the sales funnel and identifying where deals tend to stall. By tracking the time spent in each stage, teams can pinpoint bottlenecks and focus improvement efforts on the most problematic parts of the sales cycle.

Why it matters

Provides a granular view of a deal's progress through the sales funnel, helping to identify bottlenecks and conversion rates between stages.

Where to get

Retrieved from the 'stage_id' field on the Deal object, which links to the Stage object in the Pipedrive API.

Examples
Lead InContact MadeDemo ScheduledProposal MadeNegotiations Started
Event End Time
EventEndTime
The timestamp indicating when an activity with a duration was completed.
Description

The Event End Time marks the completion of an activity that has a measurable duration, such as a meeting or a task. It complements the Start Time by allowing for precise calculation of how long specific activities took.

This attribute is essential for calculating the processing time of individual activities. Analyzing this duration helps identify which specific tasks are most time-consuming and offers opportunities for optimization, automation, or resource reallocation.

Why it matters

Allows for the precise calculation of individual activity durations, which is key to identifying time-consuming tasks and bottlenecks.

Where to get

Retrieved from fields like 'due_date' or a completion timestamp on Activity objects in the Pipedrive API.

Examples
2023-04-15T11:00:00Z2023-04-16T15:00:00Z2023-05-01T09:35:00Z
Invoice Payment Time
InvoicePaymentTime
The duration between when an invoice was sent and when the payment was received.
Description

Invoice Payment Time measures the efficiency of the accounts receivable process. It specifically tracks the time elapsed from the 'Invoice Sent' activity to the 'Payment Received' activity.

This metric is crucial for monitoring cash flow and identifying delays in payment collection. Analyzing this duration helps businesses understand customer payment behavior and the effectiveness of their dunning and collection strategies, directly impacting the Quote to Payment cycle.

Why it matters

Directly measures the efficiency of the cash collection process and is vital for managing cash flow.

Where to get

Calculated as the difference between the timestamps of the 'Payment Received' and 'Invoice Sent' activities for a given case.

Examples
28 days45 days10 days
Is On Time Payment
IsOnTimePayment
A boolean flag indicating if a payment was received within the agreed payment terms.
Description

This attribute is a binary flag (True/False) that indicates whether a payment was made on time. It is derived by comparing the actual Invoice Payment Time against the specified Payment Terms.

This flag simplifies the analysis of payment behavior. It can be used to quickly calculate the On-Time Payment Rate KPI and to filter for late payments, allowing for a focused root cause analysis on why certain customers or types of deals result in payment delays.

Why it matters

Simplifies the analysis of payment adherence and is used to calculate the On-Time Payment Rate KPI.

Where to get

Calculated by comparing 'InvoicePaymentTime' with the 'PaymentTerms' attribute. For example, if PaymentTerms is 'Net 30' and InvoicePaymentTime is <= 30 days, the value is True.

Examples
truefalse
Is Rework
IsRework
A flag that identifies activities that are part of a rework loop.
Description

Is Rework is a boolean flag that is typically calculated by the process mining tool to highlight instances where the process deviates from a linear flow and repeats previous steps. For example, a deal moving from 'Negotiation' back to 'Proposal Sent' would be considered rework.

Identifying rework is critical for process optimization as it represents inefficiency, wasted effort, and potential confusion for the customer. Analyzing activities flagged as rework helps pinpoint areas where the process is breaking down, enabling targeted improvements.

Why it matters

Helps to quantify process inefficiency by identifying and flagging activities that are part of a repeated or circular process path.

Where to get

This is calculated by the process mining software by analyzing the sequence of activities within each case.

Examples
truefalse
Last Data Update
LastDataUpdate
The timestamp of the most recent data refresh from the source system.
Description

This attribute indicates the last time the data was extracted and updated in the process mining dataset. It provides a clear reference point for the freshness of the data being analyzed.

For any analysis, knowing the data's timeliness is critical. This attribute helps users understand if the insights they are viewing reflect the most current state of the process, which is essential for operational monitoring and decision-making.

Why it matters

Indicates the freshness of the data, ensuring users are aware of how current the process analysis is.

Where to get

This value is generated and recorded during the data ingestion or ETL process.

Examples
2023-10-27T02:00:00Z2023-10-28T02:00:00Z
Lead Source
LeadSource
The source or channel through which the lead was acquired.
Description

Lead Source identifies how a potential customer was first identified, for example, 'Webinar', 'Cold Call', or 'Partner Referral'. This information is vital for marketing and sales strategy.

Analyzing the Lead Source helps determine the effectiveness of different marketing channels. It can be used to compare conversion rates and sales cycle times for leads from various sources, allowing the business to optimize its marketing spend and sales efforts.

Why it matters

Helps measure the effectiveness of different marketing channels by analyzing the conversion rates and process performance of leads from each source.

Where to get

Retrieved from the 'source_name' field on the Lead object, which is then associated with the Deal.

Examples
Organic SearchPaid SocialReferralTrade Show
Organization Name
OrganizationName
The name of the customer's company or organization associated with the deal.
Description

This attribute identifies the corporate customer linked to the sales opportunity. It provides context about which companies are in the sales pipeline.

Analyzing data by Organization Name helps in understanding customer behavior and identifying key accounts. It can be used to segment the process analysis to see if processes differ for strategic customers versus smaller clients, or to track the entire sales history with a specific company.

Why it matters

Identifies the customer, enabling customer-centric analysis and segmentation of the sales process.

Where to get

Retrieved from the 'org_id' field on the Deal object, which links to the Organization object in the Pipedrive API.

Examples
ABC CorporationGlobal Tech Inc.Innovate Solutions
Payment Terms
PaymentTerms
The agreed-upon terms for payment, such as 'Net 30' or 'Net 60'.
Description

Payment Terms define the timeframe within which a customer is expected to pay an invoice after it has been sent. This attribute is critical for managing accounts receivable and cash flow.

In process mining, this attribute serves as the baseline for evaluating payment performance. It is used to calculate KPIs like the On-Time Payment Rate by comparing the actual payment date against the due date derived from the invoice date and these terms.

Why it matters

Provides the baseline for measuring on-time payment performance and analyzing delays in the cash collection process.

Where to get

This is typically a custom field on the Deal or Organization object in Pipedrive, or it may come from an integrated accounting system.

Examples
Net 30Net 60Due on Receipt
Product
ProductAttached
The product or service associated with the sales opportunity.
Description

This attribute specifies the product or service being sold in the deal. It allows for a more detailed analysis of sales activities related to specific offerings.

By including the product, analysis can be segmented to compare sales processes across different product lines. This can reveal if certain products have longer sales cycles, different conversion rates, or require different process steps, leading to more tailored sales strategies.

Why it matters

Enables analysis of the sales process by product line, helping to identify variations in sales cycles or success rates for different offerings.

Where to get

Retrieved from the Product object that is linked to a Deal in the Pipedrive API.

Examples
Standard SaaS SubscriptionEnterprise Platform LicenseProfessional Services Package
Region
Region
The geographic region associated with the customer or sales opportunity.
Description

This attribute categorizes deals into geographical areas, such as North America, EMEA, or APAC. It allows for location-based analysis of sales performance and processes.

By segmenting the process by region, businesses can uncover regional differences in sales cycle times, win rates, and process variants. These insights can inform regional sales strategies, resource allocation, and process standardization efforts.

Why it matters

Enables geographical analysis of the sales process, highlighting regional differences in performance and customer behavior.

Where to get

This is typically a custom field on the Deal or Organization object. The address fields of the Organization can also be used to derive this.

Examples
North AmericaEMEAAPACLATAM
Sales Cycle Time
SalesCycleTime
The total duration from the creation of a deal to when it was closed (won or lost).
Description

Sales Cycle Time is a key performance indicator that measures the total time elapsed from the first event, 'Deal Created', to the final outcome event, such as 'Deal Won' or 'Deal Lost'.

This calculated metric provides a high-level overview of sales velocity. Analyzing its average and distribution helps identify trends and systemic delays in the overall process. It is a primary KPI for dashboards focused on sales efficiency and performance.

Why it matters

This is a critical KPI for measuring the overall efficiency and speed of the sales process from start to finish.

Where to get

Calculated by finding the difference between the timestamp of the first and last activity for each SalesOpportunityId.

Examples
30 days 4 hours92 days 8 hours15 days 2 hours
Source System
SourceSystem
Identifies the system from which the data was extracted.
Description

This attribute specifies the origin of the data, which in this case is Pipedrive. It is particularly useful in environments where data from multiple systems is being consolidated for a holistic process view.

While often a static value in a single-system analysis, it provides essential context and aids in data governance and traceability. It confirms that the events and attributes are related to the Pipedrive instance.

Why it matters

Provides crucial context about the data's origin, ensuring traceability and clarity, especially when data from multiple systems is combined.

Where to get

This is typically a static value added during the data transformation process.

Examples
Pipedrive
Required Recommended Optional

Lead to Cash Activities

These key process steps and milestones should be captured in your event log to ensure accurate process discovery and effective optimization.
5 Recommended 8 Optional
Activity Description
Deal Created
Marks the official start of a sales opportunity. This event is triggered when a new deal is manually created or automatically generated from a converted lead.
Why it matters

This is the primary start activity for the sales cycle. Analyzing the time from this event to 'Deal Won' or 'Deal Lost' provides the overall sales cycle duration.

Where to get

This is an explicit event captured in the Pipedrive Deals entity. The creation timestamp ('add_time') for the deal record serves as the event time.

Capture

Use the 'add_time' field from the Deals entity.

Event type explicit
Deal Lost
Marks the unsuccessful closure of a deal. This occurs when the sales process is terminated because the customer chose a competitor, is no longer interested, or for other reasons.
Why it matters

This is the primary failure end-point. Analyzing when and why deals are lost provides critical insights for improving sales strategy, training, and qualification processes.

Where to get

This is an explicit event captured when a deal's status is changed to 'lost'. The 'lost_time' field in the Deals entity records the timestamp.

Capture

Use the 'lost_time' timestamp from the Deals entity.

Event type explicit
Deal Won
Marks the successful closure of a deal, signifying verbal or written agreement from the customer. This is a standard, explicit status change within Pipedrive.
Why it matters

This is the most important success milestone. It is crucial for calculating win rates, sales cycle length for successful deals, and overall sales performance.

Where to get

This is an explicit event captured when a deal's status is changed to 'won'. The 'won_time' field in the Deals entity provides the precise timestamp.

Capture

Use the 'won_time' timestamp from the Deals entity.

Event type explicit
Payment Received
Marks the successful receipt of payment from the customer, completing the cash cycle for the opportunity. This is the final event in the Lead to Cash process and originates from a financial system.
Why it matters

This is the final, value-realizing step. It is the true end of the Lead to Cash process and is essential for measuring the end-to-end cycle time and analyzing payment delays.

Where to get

Captured from an accounting or payment processing system. The payment confirmation must be linked back to the Pipedrive deal.

Capture

Event data from an external financial system, linked to the deal via a unique identifier.

Event type explicit
Proposal Sent
Represents the point where a formal quote or proposal is delivered to the customer. This is often inferred by the deal moving into a specific pipeline stage, such as 'Proposal Made' or 'Quote Sent'.
Why it matters

This is a key milestone in the sales process. Analyzing the time from this event to 'Deal Won' helps understand the length of the decision-making and negotiation phase.

Where to get

Inferred from the Deal changelog when the 'stage_id' changes to a stage designated for proposals. The timestamp of the stage change is used.

Capture

Detect when a Deal's 'stage_id' is updated to a specific 'Proposal' stage.

Event type inferred
Deal Qualified
Indicates that the deal has met predefined criteria and is considered a viable opportunity worth pursuing. This is typically inferred when a deal moves from an early pipeline stage, like 'Lead In', to a more qualified stage, like 'Contact Made' or 'Needs Defined'.
Why it matters

This milestone helps analyze the effectiveness of the lead qualification process and pinpoints how long deals spend in initial, unqualified stages.

Where to get

Inferred from the Deal changelog or history when the 'stage_id' field changes to a stage that signifies qualification.

Capture

Identify stage change to a pre-defined 'qualified' stage from the deal's history.

Event type inferred
Deal Reopened
Represents a deal that was previously marked as lost but has been reactivated for further sales activities. This event is inferred when a deal's status changes from 'lost' back to 'open'.
Why it matters

This activity highlights rework loops and re-engagement efforts. Analyzing these instances can reveal patterns in customer behavior or sales follow-up effectiveness.

Where to get

Inferred from the Deal changelog. It is detected when the 'status' field changes from 'lost' to 'open'.

Capture

Identify a status change from 'lost' to 'open' in the deal's history.

Event type inferred
Initial Contact Made
Represents the first meaningful interaction with the potential customer associated with the deal. This is typically logged as a completed activity, such as a call, email, or meeting, linked to the deal.
Why it matters

Tracking this helps measure the time to first contact and ensures leads are engaged promptly. It provides insight into the responsiveness of the sales team.

Where to get

Captured from the Pipedrive Activities entity. It is identified by finding the earliest completed activity linked to the deal ID.

Capture

Find the first completed Activity associated with a Deal, based on the 'done_time' field.

Event type explicit
Invoice Sent
Represents the moment an invoice is sent to the customer for payment. This event is usually triggered in an external accounting or billing system after order fulfillment.
Why it matters

This marks the start of the payment cycle. The time between this event and 'Payment Received' is critical for monitoring accounts receivable and cash flow.

Where to get

Originates from an external accounting or ERP system like Xero or QuickBooks. The event data needs to be integrated and associated with the Pipedrive deal.

Capture

Event data from an external billing system, associated with the deal via API integration.

Event type explicit
Negotiation Started
Signals the beginning of active negotiation on price, terms, or scope. This is typically inferred when a deal moves into a 'Negotiation' pipeline stage after a proposal has been sent.
Why it matters

Isolating the negotiation phase helps identify how long this specific part of the cycle takes and which deals involve lengthy negotiations.

Where to get

Inferred from the Deal changelog when the 'stage_id' is updated to a stage explicitly named for negotiation.

Capture

Identify stage change to a pre-defined 'Negotiation' stage from the deal's history.

Event type inferred
Order Fulfilled
Indicates that the product has been shipped or the service has been delivered to the customer. This event originates from an external fulfillment or operational system.
Why it matters

Tracking fulfillment is key to understanding the order-to-delivery cycle time. Delays here directly impact customer satisfaction and revenue recognition.

Where to get

Captured from an external ERP, inventory, or service management system. This data must be linked back to the corresponding Pipedrive deal.

Capture

Event data from an external system, linked via deal ID or another common identifier.

Event type explicit
Proposal Follow-Up
Captures any sales activity, such as a call or email, that occurs after a proposal has been sent to the customer. This event indicates active engagement during the consideration phase.
Why it matters

Measures the timeliness and frequency of follow-up actions, which is critical for maintaining momentum and closing deals. It supports the 'Proposal Follow-up Timeliness' dashboard.

Where to get

Captured from the Pipedrive Activities entity. It's identified as a completed activity that occurs after the 'Proposal Sent' event for the same deal.

Capture

Identify a completed Activity with a 'done_time' that is later than the timestamp of the 'Proposal Sent' activity.

Event type explicit
Sales Order Created
Represents the creation of a formal sales order in a downstream system, such as an ERP or accounting platform, after a deal is won. This activity is not native to Pipedrive and relies on data from an integrated system.
Why it matters

This event marks the handoff from Sales to Operations or Finance. Analyzing the time from 'Deal Won' to this activity reveals potential delays in order processing.

Where to get

Typically captured from a connected ERP or finance system. The data would need to be ingested and linked to the Pipedrive deal ID.

Capture

Event data pushed from an external system via API, often updating a custom field on the Pipedrive deal.

Event type explicit
Recommended Optional

Extraction Guides

How to get your data from Pipedrive