Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get multiple opportunity business process flow instances

(0) ShareShare
ReportReport
Posted on by 215

Opportunities can have multiple quotes.

So when you add a second quote to an opportunity, the second quote will not be part of a business process flow out of the box.

I tried to create a business process flow instance in a workflow.

My Workflow Definition:

After a new quote is created, count the number of workflow instances (with Workflow Tools) and if the number of business process flow instances is 0, then create a new business process flow instance.

My problem: The workflow seems to get fired BEFORE the out of the box business process flow instance is created by the business logic. So the count of instances in my workflow is always 0. That leads to the situation, that first my workflow creates an instance (because it looks as if there is none). And then the out of the box business logic also created the instance afterwards. Very annoying.

As a workaround I tried to have another workflow on the bpf instance that deletes the double instance, if the count is 0. But somehow i can not get it to work.

Any other ideas how to achieve that?

*This post is locked for comments

  • StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: How to get multiple opportunity business process flow instances

    Please mark as verified if the answer is helpful.

  • Suggested answer
    StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: How to get multiple opportunity business process flow instances

    Hi Simon,

    If you want the second quote to be part of the business process flow, set the active stage back to the last stage of the opportunity (before the quote stage) and then select the second quote when going to the next stage.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans