Remove Business Process Flows in Dynamics 365 8.2 and Above
With version 8.2 of Dynamics 365 Customer Engagement (CRM), Business Process Flows became an entity unto themselves. There’s are lots of articles out there on how to remove Business Process Flows from existing Lead or Opportunity records. The main reason people may want to remove the Business Process Flows is that they have a really simple process and don’t want to sacrifice the screen real estate at the top of the form for a Business Process Flow that they don’t use. And, from what I’ve found browsing around at the various blog articles on how to remove the Business Process Flows, they don’t address one of the most obvious scenarios.
Another solution is to write some JavaScript to hide the Business Process Flow. But this is also an all-or-nothing approach, unless you want to code the JavaScript with conditional logic, to hide certain Business Process Flows, but not others. Going back a minute, the idea of deleting the Business Process Flow entity itself means that you’re going to delete all the records for that entity. Again, great, if that’s what you want to do, and the entity is not part of a managed solution, which are stubborn to delete. Not great if you want to keep some of the Business Process Flow records and remove others.
So, let’s say you tried deactivating the Business Process Flow in question; the one that’s associated with most, if not all, of your Leads. Now you still have the Business Process Flow taking up the real estate on your form, and you now also have a warning message that the business process flow for this record has been deactivated. So, I found the simplest way for me to remove these Business Process Flow records from some or all of your Lead records is to delete the individual Business Process Flow records, themselves. Note, I didn’t say delete the Business Process Flow entity (the “Lead to Opportunity Business Process Flow entity”) – but the Lead-to-Opportunity BPF records. How do you do this? Where can you find these records to delete the ones you want to delete?