Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How know Stages Id to use Xrm.Page.data.process.setActiveStage(stageId, callbackFunction);?? And dude.

(0) ShareShare
ReportReport
Posted on by

Hello everybody!

I've a question because in a post answered me to use Xrm.Page.data.process.setActiveStage(stageId, callbackFunction);

for move to Stage 1 to Stage by a condition, but how I can know theses Id?.

I've look that I can use stageObj.getId(); but it will return the current stage id (I think) and in this case I must know the ids for use in that functions.

Another dude,  I think that it work like moveNext(); that move the Stage but not the screen Stage. For example:

Stage 1 - Stage 2 - Stage 3 ; if I use it in Stage 1 to Stage 3, the system will be in Stage 3, but I'll keep in Stage 1 vision and must use the arrow (>) in process or click the active stage [It happened to me with moveNext(), I dont know if this new function has or not the same problem]. How I can move "my screen" to the current stage?

*This post is locked for comments

  • Suggested answer
    Clem Profile Picture
    2,541 on at
    RE: How know Stages Id to use Xrm.Page.data.process.setActiveStage(stageId, callbackFunction);?? And dude.

    Hello,

    The moveNext / movePrevious, should be effective after a refresh if i'm not mistaken.

    you could use something like :

    Xrm.Page.data.process.movePrevious(function (result) {
      alert(result);
      Xrm.Page.data.refresh()
    });


    In order to retrieve the different StageIds, you can do a query over the webapi and retrieve all possible stageIds based on the processid which is the current enabled BPF activated.

    Regards,

    Clément

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans