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
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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156