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"