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)

How to select a business process flow ("Switch Process") conditionally

(0) ShareShare
ReportReport
Posted on by 365

Is there a way to select a business process flow ("Switch Process") conditionally based on entity field values?

We have tried switching processes via a Workflow as per this video, https://www.youtube.com/watch?v=pFD4QYLxE6k, but this is not working in D365!

We have successfully used JavaScript but this is not the most user friendly experience as it requires a page refresh to see the newly selected business process flow.

Sample JS

 Xrm.Page.data.process.setActiveProcess(bpfCurrent, errorFunction);

Any advice would be much appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    Please check below article-

    rajeevpentyala.com/.../switch-business-process-flow-using-jscript-based-on-crm-forms-field-value

  • Suggested answer
    Pawar Pravin Profile Picture
    5,237 on at

    Hi ,

    Can you please share what else you are trying to update business process flow dynamically ?

    Please do refer following code for reference:

    Xrm.Page.data.process ? Xrm.Page.data.process.setActiveProcess(flowGuid, functname) : false;

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    The best option is to use the JavaScript as you are already doing but there isn't any method to just refresh the business process flow. You can use OpenEntityForm but this may not give you unsaved changes warning upon refresh.

    Refer this: community.dynamics.com/.../255571

    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

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans