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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Clem Profile Picture
    2,541 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans