Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Moving Stages 1 st stage to Active Stage in the BPF

(0) ShareShare
ReportReport
Posted on by 244

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 > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans