Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Removing/Hiding Business Process Flows from Forms

Posted on by 70

We have multiple forms on the Case entity and want business process flows on some forms and other forms we do not want them to show/appear/be used. Is this possible? If so, how?

*This post is locked for comments

  • Suggested answer
    Mark Muskin Profile Picture
    Mark Muskin 45 on at
    RE: Removing/Hiding Business Process Flows from Forms

    Thank you Nithya!!

  • agsiddiqui12 Profile Picture
    agsiddiqui12 10 on at
    RE: Removing/Hiding Business Process Flows from Forms

    This worked for me. My requirement was

    2 x Main forms

    1 x Business Process flow where BPF is only needed on one form and not the other.

    I added the hide code on form load where BPF was not needed and it worked like a charm for me.

    Thanks

  • Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: Removing/Hiding Business Process Flows from Forms

    Also can use these:- 

     

    Hide:- 

     Xrm.Page.ui.process.setVisible(false);

    Show:- 

     Xrm.Page.ui.process.setVisible(true);

     

  • Suggested answer
    sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Removing/Hiding Business Process Flows from Forms

    technet.microsoft.com/.../dn531164.aspx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Removing/Hiding Business Process Flows from Forms

    Hi,

       Apply Security Roles to the Forms you desired to have  and to the BPF.

  • Suggested answer
    Rajat Awasthi Profile Picture
    Rajat Awasthi 675 on at
    RE: Removing/Hiding Business Process Flows from Forms

    Hi Jason ,

    You can do this by security roles . Since Case forms will also have some sort of security roles .

    You can go to that particular role --> Open that role --> Click on Business Process Flows Tab .

    You will see all your BPF's there. Grant the privileges according to your requirement.

    Please mark as verified if this helps you.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Removing/Hiding Business Process Flows from Forms

    Hi Jason,

    You could write the following javascript code on load of the form.

    function HideOrShowBPF() {
        var formName = Xrm.Page.ui.formSelector.getCurrentItem().getLabel();
        if (formName == "Form1") {
           Xrm.Page.ui.process.setVisible(false); //Hide Business Process Flow
        }
        else if (formName == "Form2") {
           Xrm.Page.ui.process.setVisible(true);  //Show Business Process Flow                                                
        }
    }

    Hope this helps.

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: Removing/Hiding Business Process Flows from Forms

    If you want to quickly go through about Security Role.

    crmbook.powerobjects.com/.../security-roles

  • Verified answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: Removing/Hiding Business Process Flows from Forms

    Check this out:

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

  • Jason Miller Profile Picture
    Jason Miller 70 on at
    RE: Removing/Hiding Business Process Flows from Forms

    Thanks! I have come across articles referencing security roles...I still don't see how to do that: When I go to the BPF, click on Enable Security Roles, I only see options (I think) to totally delete the SRs which I don't want to do...

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans