web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to calculate Stage durations for Business process flows?

(0) ShareShare
ReportReport
Posted on by 10

Hello,

I have a requirement from my customer to calculate the duration of sales process stages each user is going through.
eg for all leads qualified as opportunities in 2017: how long were they in Qualify, Discovery, Execution stages etc by owner.

I figured out that achieving this requirement was pretty straight forward to implement in CRM v8.1 or earlier. (below link)
https://community.dynamics.com/crm/b/nakedcrm/archive/2017/06/06/how-can-i-work-out-the-time-spent-in-each-stage-of-a-business-process

However from CRM v8.2 onwards, there has been data model changes in the way the business process works internally...it seems that each BPF spawns a new custom entity..

I was planning to add a custom entity which could track the stage start and end times using a workflow.
However to track the time duration for each stage, I need to know when to trigger my workflow which should ideally happen whenever the BPF starts or stage change happens.

Any ideas, suggestions welcome!

*This post is locked for comments

I have the same question (0)
  • TomSmelser Profile Picture
    1,570 on at

    I think you are looking for something like this.

    www.powerobjects.com/.../executing-workflow-upon-change-business-process-flow-stage-dynamics-crm

    Good luck!

  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     you might register a real-time workflow on the BPF entity (for example, on the Opportunity Sales Process). If you make it a real-time workflow that is triggered before update and select "Active Stage" from the list of attributes that it'll be triggered on (I believe it's called "Process Changes" in the workflow designer for BPF entities), you'll get stage and duration (there is a field on the BPF entity) for that stage just before that stage is changed to something else. So you can record those values somewhere - on the custom entity, or on the entity for which the process is running.

  • Suggested answer
    manojd Profile Picture
    1,397 on at

    Hi,

    Such information is available in dynamics 365 8.2

    Follow this url

    develop1.net/.../Dynamics-365-Business-Process-Flows.aspx

  • RZP Profile Picture
    85 on at

    For some reason the Duration field is always blank.  Any ideas?

  • TomSmelser Profile Picture
    1,570 on at

    Not sure without seeing details. If workflow running maybe try setting scope to organization.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans