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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

CRM/Dynamics 365: Moving BPF Stages from Workflow

Spring Wave 2016 Profile Picture Spring Wave 2016 325

In this article, I will show you how we can move the BPF stage to the next stage using a workflow and Action.

We have a BPF named “Test BPF” which is created for our entity named “Test Entity”.

Let’s create an action named “Move Next Stage”. Select BPF “Test BPF” as an entity while creating Action.

1.png

Setup the following conditions and update steps in the action body.

2.png

In each update step, I am setting the next stage to make as active and passing related entity reference. See this screenshot

3.png

In next step call this action on a real-time workflow which is being called on a field (i.e. Stage Name) change in entity “Test Entity”.

Let’s create a workflow on the field (i.e. Stage Name) change.

4.png

And call the Action we created previously from this workflow

6.png

When Click “View properties” link, you can see we are passing BPF reference to Action. See here

5.png

6.png

Now, select the next stage from options set “Stage Name” and save current record. You will see the stage will be automatically moved to the next stage.

7.png

Note: If you try to move to the next stages by skipping some stage in between two stages, CRM throws an error because it is not allowed in Dynamics 365. For example, the current active stage is “Capture Details” and we are trying to move directly to the last stage. It is not allowed. You need to move to the next stages one by one. The error will be like this.

8.png

References

https://msdn.microsoft.com/en-us/library/dn481586.aspx#ManageBPF

https://community.dynamics.com/crm/b/develop1/archive/2017/03/13/there-is-something-rather-different-about-dynamics-365-business-process-flows

https://community.dynamics.com/365/b/dynamicscrmconsultant/archive/2017/03/29/invalid-stage-transition-transition-to-stage-0-is-not-in-the-process-active-path

 

 

 

 

 

 

 


This was originally posted here.

Comments

*This post is locked for comments