Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Removing/Hiding Business Process Flows from Forms

(0) ShareShare
ReportReport
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,056 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,076 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,401 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,267 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,289 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans