Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Advancing a Dynamics CRM Opportunity Sales Process (to Finished) when Opportunity is Closed Won/Lost

(0) ShareShare
ReportReport
Posted on by

I must be missing something but I have been trying to do this via a workflow all day and just can't seem to figure it out.

I have a 4 stage Opportunity Sales Process Business Process Flow which may be on any stage when the opportunity is Closed Won or Closed Lost. 

What I would like to do is change the related Business Process Flow to finished at this point to stop the timer and record the period of time that the opportunity was active.

I have tried to trigger this in a workflow from the opportunity when the status changes, but the Business Process Flow fields are not available to update.

I have tried to trigger this in a workflow from the Opportunity Sales Process entity but there is nothing in that process that would activate a workflow at the time the opportunity is closed.

I even tried creating a process action and executing that from the opportunity when the status changes, but there is no dynamic reference to link this action to the correct Opportunity Sales Process instance.

So following those approaches I am well and truly stuck.

*This post is locked for comments

  • Sander Daudey Profile Picture
    370 on at
    RE: Advancing a Dynamics CRM Opportunity Sales Process (to Finished) when Opportunity is Closed Won/Lost

    If you only use one BPF on the opportunity you could add a lookup to this BPF on the opportunity. In this way you can control the BPF via a workflow on the opportunity.

    Other workaround is to create a wait workflow on the BPF entity which waits for the opportunity status = lost /won.

  • Community Member Profile Picture
    on at
    RE: Advancing a Dynamics CRM Opportunity Sales Process (to Finished) when Opportunity is Closed Won/Lost

    Thanks Ravi,  It's hard to believe it takes a programmer to finish a sales business process when the opportunity is won or lost but I guess that keeps the Microsoft ecosystem busy.

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Advancing a Dynamics CRM Opportunity Sales Process (to Finished) when Opportunity is Closed Won/Lost

    Hi,

    I don't think it is possibel to achiev this with the OOB workflow. Each record has its own instance of the BPF.  You need to write come custom code such as a plugin which will trigger on close of opportunity and then retrieves the current business process flow instance and then mark it as finish.

    You can refer the following links-

    crmmemories.blogspot.com.au/.../finish-business-process-flow-in-c.html

    msdn.microsoft.com/.../dn481586(v=crm.7).aspx

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans