Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Advancing Business Process Flow from Javascript onLoad or onSave events

$
0
0

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

https://msdn.microsoft.com/en-us/library/dn817878.aspx?tduid=(388a45b15245cd8e12e0fa5acfc7ba66)(256380)(2459594)(TnL5HPStwNw-dvOBjWIkrp.nJoLgx1kUaw)()

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


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images