Thursday, 1 March 2018

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".

Opportunity Business Process

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".

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.

Select "Pipeline Phase" field from "Records Fields Change"