Hello,
I have a requirement to advance the Business Process Flow to next stage using OnLoad or OnSave events of form. I know following methods from Javscript library
Xrm.Page.data.process.moveNext(callbackFunction);
When when i use the above line in OnLoad or OnSave it does not work. When i look at the status it returns in callbackFunction it says "stageGate". I also found below notes from following site
"For best results, this method should only be used in code that is called in functions initiated by theOnStageChange and OnStageSelected events.".
please let me know if the above method works in OnLoad or OnSave events? otherwise can you guide in what event this code works?
We can implement it using the combination of RealTimeWorkflow + custom workflow, but i would like to implement it using JavaScript.






