
SugarCRM
Use SugarBPM to retain the most recent open stage on an opportunity that closes.
- Qualification
- The last open stage starts at Qualification.
- Negotiation
- SugarBPM writes the new open stage.
- Closed Lost
- The last open stage remains Negotiation.
Keep the last open stage for win-loss reporting
SugarCRM now uses the SugarAI name. In Sugar Studio, create a custom Last Open Stage field on Opportunities. In SugarBPM use an opportunity process definition and an exclusive gateway. Route each open Sales Stage to a Change Field action that writes the corresponding value. Route both closed stages to an End event. If opportunities can be created in a later stage, include creation in the process start criteria and test it.
Use a test pipeline with Qualification, Negotiation, Closed Won, and Closed Lost. Walk a $36,000 opportunity through Qualification and Negotiation, then close it lost. Filter the win-loss report by the captured field and compare it with the opportunity. Decide explicitly whether reopening allows the field to update again. This example tracks the latest open stage through a reopen.
| Opportunity movement | Expected result |
|---|---|
| Qualification to Negotiation | Last Open Stage becomes Negotiation. |
| Negotiation to Closed Lost | Last Open Stage remains Negotiation. |
| Reopen at Qualification | Last Open Stage becomes Qualification for the new cycle. |
Store the reporting definition of last open stage with the opportunity field inventory.