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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 59 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans