Hi,
I have two Entities Entity A and Entity B related as 1:N. Entity A has it own BPF and Entity B has its own BPF. As part of Entity A business process flow where it gets transitioned to Entity B in one the stage. When the stage moves to Entity B, by default A's business process flow is shown. I would like to switch to Entity B's business process flow automatically
FYI: I can manually change the Entity B's BPF using Switch Process button, but I would like to automate it
Below code is not working if I set on B Entity's Form Load even though return back status is success
Xrm.Page.data.process.setActiveProcess("FE89C833-A0D2-40B4-AEB4-40A304261EC1", function (status)
{
if (status == "success")
{
Xrm.Page.data.entity.save();
Xrm.Page.data.refresh(true);
}
});
Any suggestions?
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (