web
You’re offline. This is a read only version of the page.
close
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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans