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 :
Customer experience | Sales, Customer Insights,...
Answered

Close Opportunity if all related Quotes are closed (won/lost)

(0) ShareShare
ReportReport
Posted on by 54

Hi there,

Users have the option to close the opportunity if they are closing the last quote on it. Occasionally, users do not select the option to close the opportunity leaving us with a lot of open opportunities. I would like to create a workflow or flow to automatically close an opportunity if the last quote on it is closed. Cannot think of a way to start on this request. Any insight would be helpful.

Thanks in advance.

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    To do that in workflow you will have to write some code.

    With flow you have no need in code. Here is approximate flow design:

    1. Flow starts when quote changes state to "Closed".

    2. Flow uses "Retrieve Records" for quotes with filters by parent opportunity equal to opportunity of the quote that triggered flow to start and state that is equal to open.

    3. You add a "Check" statement where you check the length of collection you received on the previous step - if it is equal to 0 ( that means that there are no opened quotes for this opportunity).

    4. If 3 is true - then you just update the state of opportunity to won.

    Good luck.

  • Verified answer
    PS Profile Picture
    23,577 on at

    Hi There

    I agree with Andrew's Flow suggestion and the steps would be more or less same.

    If you want to use workflows, no code is involved and the following screenshot will help you:

    6175.JPG

  • Suggested answer
    ashish12 Profile Picture
    3,079 on at

    Using MS Flow is the best way to do it.

  • SR11 Profile Picture
    54 on at

    Thank you for pointing me in the right direction. I was able to use MS Flow to accomplish this.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 159

#2
ManoVerse Profile Picture

ManoVerse 138 Super User 2026 Season 1

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 59 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans