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)

How use moveNext() Function to desplace to more far Stages?

(0) ShareShare
ReportReport
Posted on by

Hello everybody!

I've a dude with the function:  Xrm.Page.data.process.moveNext(); ..... It can be use for move to a specific stage? for example:

Stage 1: Identification

Stage 2: Development

Stage 3: Solution

Stage 4: Implementation

Stage 5: Lost Client

Stage 6: Hold On

I can use moveNext() to move by the process (1-2-3-4) , but I want make that if in Stage (1-2-3) the client abandoned the proyect, so we must move to Stage 5. In another case, if in Stage (1-2-3) the client/we get a unspected problem and can't keep with the proyect for the moment, so we must move to Stage 6 until we can be able to retunt to the last Stage before Stage 6: Hold On.

For your time "Thanks You!" and sorry for my english.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Karsten Wirl Profile Picture
    4,477 on at

    Hi there.

    MoveNext() only set the next stage.

    But you can achieve your goal with the following code:

    1. If you know your stages, set them using the following method in JS on your conditional checkpoints

    Xrm.Page.data.process.setActiveStage(stageId, callbackFunction);

    2.Or using the addOnStageSelected method to add your own handler & call the following method to call the subroutine till the needed stage is attained

    Xrm.Page.data.process.addOnStageSelected(handler);

  • Community Member Profile Picture
    on at

    Hello there.

    I've a dude, how I can know all Stages Id? Because in option (1) I supposed that I must know it first for write there... and I've read aboud callbackFunction but I don't undestard it, it's a function? (need write any value here or it's a default string?).

    If you can, you will make a little example? I'm very new in JavaScript.

    For your time thanks you.

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