web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

I have the same question (0)
  • Suggested answer
    Mark Muskin Profile Picture
    45 on at

    Thank you Nithya!!

  • agsiddiqui12 Profile Picture
    10 on at

    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
    777 on at

    Also can use these:- 

     

    Hide:- 

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

    Show:- 

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

     

  • Suggested answer
    sandeepc Profile Picture
    5,514 on at

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

  • Community Member Profile Picture
    on at

    Hi,

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

  • Suggested answer
    Rajat Awasthi Profile Picture
    675 on at

    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
    17,078 on at

    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
    11,401 on at

    If you want to quickly go through about Security Role.

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

  • Verified answer
    Andreas Cieslik Profile Picture
    9,267 on at
  • Jason Miller Profile Picture
    70 on at

    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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

#2
Abdullah13 Profile Picture

Abdullah13 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans