web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Community Member Profile Picture
    on at

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

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

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

  • How to retrieve work hours for a user Profile Picture
    70 on at

    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.

  • How to retrieve work hours for a user Profile Picture
    70 on at

    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.

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    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/

  • How to retrieve work hours for a user Profile Picture
    70 on at

    Hi Nithya,

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

    moveNext() itself not working properly.

    Regards,

    Gopinath V.

  • Indika Abayarathne Profile Picture
    671 on at

    Please find the moveNext methos here 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans