How to Automatically Next Stage on Business Process Flow
Microsoft Dynamics CRM 2015 and CRM Online supports “Next Stage” action on the CRM Form’s current selected Business Process Flow (BPF) via JavaScript: Write scripts for business process flows
Using JavaScript saves the Microsoft CRM users time from manually clicking on the “Next Stage” in order to advance to the next Stage. It also checks if the stage advance conditions have been met before advancing.
Here is the detail reference: Xrm.Page.data.process (client-side reference)
Here is an example JavaScript that I would call from the CRM Form’s OnSave event:
function BPFMoveNext() {
// Check if BPF is on current form
if (Xrm.Page.getAttribute(“processid”) != null){
Xrm.Page.data.process.moveNext();
}
}
Note: “processid” is the BPF’s ID, we need to check for the “proccessid” otherwise it will generate an error if there is no BPF used on the CRM form.
Contact me if you are looking for Microsoft CRM design help.
Frank Lee, Microsoft CRM MVP, San Francisco
Workopia – Keeping up with the Cloud Innovations!

This was originally posted here.
*This post is locked for comments