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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans