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
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
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6