web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Switch business process flow during cross entity transition

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans