How to check for Opportunity Business Process Stage Changes in a Dynamics 365 Version 9 Workflow
In the new Dynamics 365 there are many Business Process changes.
There are times when you need to check for a Business Process Stage change in Opportunity out-of-the box entity. On the change of a Business Process Stage, you might need to run create/update a record.
The best way to achieve this is through a Synchronous workflow, on Opportunity, which checks
- Either the "Stage Category" field value for the corresponding "Stage Id (Process Stage)" entity
- Or "Pipeline Phase" field value within Opportunity
Create a new Business Process on Opportunity. This Business Process will have 4 stages "Apply", "Estimation", "Documentation", "Approval".
https://2.bp.blogspot.com/--gM7W17NQbk/WpeEgP99A-I/AAAAAAAABeQ/-vFAEzPm86AXa2iRsLddAfvGnllwUL2UgCLcBGAs/s640/37.PNG |
Opportunity Business Process |
https://4.bp.blogspot.com/-G1ZFh8vyW_Y/WpeFcZ-HMaI/AAAAAAAABec/1nhwG-Ic5yoouVXnYFgK-q8QQbNTmaSZACLcBGAs/s640/38.PNG |
Opportunity Stages |
Let's say you need to execute certain steps for every business process stage. To perform this either create one Synchronous workflow with four check conditions or have four Synchronous workflows with one check condition each. Synchronous workflow below, on Opportunity, checks for stage "Approval".
https://3.bp.blogspot.com/-Tm_AkHL1rsQ/WpeF_3kM3vI/AAAAAAAABek/qxHY4SOfLfoYIPZs_Z5rgfCDYH2eGoRWACLcBGAs/s1600/39.PNG |
Synchronous workflow with Approval Stage Check |
Also, in the Synchronous workflow select the field "Pipeline Phase on change of which the workflow will be executed.
https://1.bp.blogspot.com/-ZxZuLjEVqRw/WpeH7aLwZVI/AAAAAAAABfI/RzzfqBbDdzY5pcqEhL9Ll1eQimN0Z-RVgCLcBGAs/s640/40.PNG |
Select "Pipeline Phase" field from "Records Fields Change" |