Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Showing the last activated BPF

(0) ShareShare
ReportReport
Posted on by 607

Hi

We have a plugin that sets/activates a new business process flow based on a certain opportunity attribute:

service.Execute(new Microsoft.Crm.Sdk.Messages.SetProcessRequest()
{
     NewProcess = flow,
     Target = entity.ToEntityReference()
});

However, when the opportunity UI refreshes, the JS method getActiveProcess (Xrm.Page.data.process.getActiveProcess) returns the first active BPF, not the latest activated BPF.

Does anyone have an idea on how to set the BPF server side, and showing it in the UI afterwards?

Kind regards

Kim

*This post is locked for comments

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,626 on at
    RE: Showing the last activated BPF

    Hi,

    due to cocurrent or parallel BPF introduced. You have to use JS to switch the bpf via UI.

    You can create a JS that trigger on load, if the opportunity attribute is not same as current bpf, switch the bpf via JS.

    docs.microsoft.com/.../setactiveprocess

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Showing the last activated BPF

    Hi Kim,

    Did you try setting BPF using real time workflow --> Action --> Set Process?

    www.inogic.com/.../set-process-through-workflow-in-dynamics-crm-2016

    Hope this helps.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans