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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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

  • Community Member Profile Picture
    on at

    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.

  • Sander Daudey Profile Picture
    370 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans