Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Change Business Process Flow for Different Forms of an Entity

Posted on by 17,074

Hi All,

How can we run two different business process flows for two different forms of an entity in Dynamics CRM? 

Any help is appreciated.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Business Process Flow for Different Forms of an Entity

    Can we go the other way? Is there a way to change the form based on business process flow steps?

  • Verified answer
    Anchal Profile Picture
    Anchal on at
    RE: Change Business Process Flow for Different Forms of an Entity

    hello Nithya,

    try this

    function onload() {

       debugger;

    var formName = Xrm.Page.ui.formSelector.getCurrentItem().getLabel();

    if (formName == "Opportunity") {

       Xrm.Page.getAttribute("processid").setValue("678714CE-EB55-4E69-A6C5-D74B0CBA0B4F");

    }

    else if (formName == "opty") {

       Xrm.Page.getAttribute("processid").setValue("E531C0DE-813D-489A-BCE6-55F326BF1D80");

    }

       window.location.reload(true);

    }

  • Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Change Business Process Flow for Different Forms of an Entity

    Hi Scott,

    Thanks for the reply. But I need to perform two BPF for two forms. Is it possible using Javascript code added on-load of the form?

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Change Business Process Flow for Different Forms of an Entity

    There is currently no link between forms and process flows. You would need to limit using role based forms and limit each bpf to the corresponding security role.

    See - msdn.microsoft.com/.../gg334717.aspx

    And

    www.microsoft.com/.../assign-a-security-role-to-a-business-process-flow.aspx

    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!

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,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