Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Moving Stages 1 st stage to Active Stage in the BPF

Posted on by 240

Hello All,

BPF which consist of multiple entities , I have Following Scenario 

1) Case entity it have one Identity Stage -->starting Stage 

2) IRC entity it have Some more Stages --> next Stages 

we have  Some Condition ,based on that one ,IRC Stages will Shown in BPF,after Case entity Saved  with changes ,I click on next Stage ,on click of Next Stage BPF moved to IRC entity ,it is showing  IRC form with "Stage 1 " , Now Active Stage is IRC stage i.e "Stage 1",after that i closed the open record,

After Some time ,if Open Same Case record it need to Start from IRC not from Case "Identity Stage" that is requirement ,How to Achieve above thing ,it tried with below codes.

function NextStage()

{

var activeProcess = Xrm.Page.data.process.getActiveProcess;
if (activeProcess != null) {
  Xrm.Page.data.process.moveNext(function (result) {
    if (result == "success") {
      // ** Code for success goes here
      alert("Worked");
    } else {
      // ** Code for failure goes here
      alert("Had an Issue");
    };
  });
};

}

it is throw invalid Stage error ..not moving from Case "Identity" Stage to IRC "Stage 1" ,
is it possible move cross entity stages.

is it possible "Active Stage != Selected Stage " ,we can use "Xrm.Page.data.process.moveNext"


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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans