Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Activate Business Process Flow on Field Change?

Posted on by Microsoft Employee

We've got 3 different business processes on the same Account entity, each triggered by a different benefit type. So, is it possible to show a business process flow only when a field has a certain value? It would be ideal if a workflow could trigger which business process to show.

Ex. Display "Regular Member Verification" business process flow only when "Benefit Type" = "Regular Member"

How could we do this?

*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Activate Business Process Flow on Field Change?

    Apparently, there have been some changes in the Fall 2016 release. We had a long discussion in a different thread earlier today - just made a blog post about it:

    www.itaintboring.com/.../dynamics-365-there-is-a-huge-change-in-how-business-processes-workand-honestly-i-dont-know-if-its-a-bug-or-a-feature

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Activate Business Process Flow on Field Change?

    Thanks inogic. Our env is being upgraded, so I'll give this a try when it's online.

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Activate Business Process Flow on Field Change?

    Please go through the below blog and it might help you:

    http://www.inogic.com/blog/2015/03/scripting-on-business-process-flow-in-crm-2015-part-i/

    All you have to do is bind an on change event on the change of field and programmatically set the Active Process that you want based on the explanation available in the above blog.

    If this answered your question, please make sure to Mark this as an Answer.

    Thanks,

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Activate Business Process Flow on Field Change?

    Hi,

    It is possible to change business process flow based on the field value change in dynamics CRM. You could create a workflow for the same. The workflow should start when the record is created or when the record fields (i.e. the field value) change. 

    If the Option-Set field value equals "Value 1"

         then Set Process: "Business Process Flow 1"

    If the Option-Set field value equals "Value 2"

         then Set Process: "Business Process Flow 2"

    For more details, refer the link below.

    http://www.magnetismsolutions.com/blog/davidmochrie/2015/12/13/set-business-process-flow-using-a-workflow-in-dynamics-crm-2016

    http://www.powerobjects.com/2016/12/06/change-business-process-flows-using-workflow/

    http://dynamicscrmcoe.com/changing-business-process-flows-workflows/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Activate Business Process Flow on Field Change?

    Thanks, Alex. I'll look into these.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Activate Business Process Flow on Field Change?

    Hi,

     you might likely do it with Javascript - there are a few related methods in the Xrm.Page.ui.process:

    - getVisible/setVisible: msdn.microsoft.com/.../dn817860.aspx;MSPPError=-2147217396#BKMK_getVisible

    - setActiveProcess: msdn.microsoft.com/.../dn817878.aspx

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans