Hi guys,
Actually i am trying to move to next stage automatically through javascript in dynamics 365.
Is anyone know how to do this On Save of the form the Javascript has to run and move to next stage from the current stage automatically.
Regards,
Gopinath V.
*This post is locked for comments
Please find the moveNext methos here msdn.microsoft.com/.../dn817878.aspx
Hi Nithya,
I have tried this also before but it is not working.
moveNext() itself not working properly.
Regards,
Gopinath V.
Hi Gopinath VinothKumar,
Have you tried the code below?
var activeProcess = Xrm.Page.data.process.getActiveProcess; if (activeProcess != null) { Xrm.Page.data.process.moveNext(function (result) { if (result == "success") { // ** Code for success goes here alert("Worked"); } else { // ** Code for failure goes here alert("Had an Issue"); }; }); };
See: https://neilparkhurst.com/2015/11/01/business-process-flows-javascript-part-2/
Hi Gopalan,
We can automatically move from one stage to next stage its possible only.
If you know how to do that let me know.
Regards,
Gopinath V.
Hi Vikas,
I have already searched these and done these methods also moveNext() is not working as expected.
If you know anything let me know.
Regards,
Gopinath V.
Hi
You can make a stage active using JavaScript, only if that stage was completed already.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156