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

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans