Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Automatically move to Next Stage

(0) ShareShare
ReportReport
Posted on by 70

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

  • Indika Abayarathne Profile Picture
    Indika Abayarathne 671 on at
    RE: Automatically move to Next Stage

    Please find the moveNext methos here msdn.microsoft.com/.../dn817878.aspx

  • RE: Automatically move to Next Stage

    Hi Nithya,

    I have tried this also before but it is not working.

    moveNext() itself not working properly.

    Regards,

    Gopinath V.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,076 on at
    RE: Automatically move to Next Stage

    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/

  • RE: Automatically move to Next Stage

    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.

  • RE: Automatically move to Next Stage

    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.

  • Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,401 on at
    RE: Automatically move to Next Stage

    Hi

    You can make a stage active using JavaScript, only if that stage was completed already.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatically move to Next Stage

    Check this link msdn.microsoft.com/.../dn817878.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans