Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Showing the last activated BPF

Posted on by 605

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
    Alex Fun Wei Jie 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
    RaviKashyap 55,410 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans