Flow and Process Builder List View with Batch Delete
See this post for the latest version of this Application. It has been refactored to use the most recent versions of the prerequisite components. Eric Smith 11/5/2022
Flow and Process Builder List View with Batch Delete
I’ve been following a couple of ideas on the Idea Exchange for a while now. One has over 11,000 points and 13 merged ideas. Process Builder – List View and the other Allow Mass Deletion of Inactive Process Builder Versions has over 4,000 points with 4 merged ideas.
I don’t know about you, but I get pretty frustrated trying to view and keep track of all of my Flows and Process Builders. A better List View would certainly be appreciated.
When it comes to trying to clean things up and delete some old inactive versions, it becomes downright painful.
- Find the Process Builder,
- Expand the list,
- Find the old version,
- Click Delete,
- Click Confirm,
- Wait,
- Wait some more,
- Go to select the next one —
- Oh ^#%$@ I have to start all over again!!!
I decided to put my Datatable component to work and updated it to support Apex-Defined object variables. Using data pulled from three different Salesforce internal objects, I’m able to display details about Flows and Process Builders. The full power of the Datatable component comes into play by offering a List View with sorting, highlighting, filtering and more.
Taking advantage of the Datatable’s ability to select multiple records and pass them along in a Flow to be acted upon, I created a Flow Action that interfaces with the Metadata API and handles the batch deletion of the selected inactive Flows and/or Process Builders.
I’ve bundled all of this together in an App that includes a configurable List View, List View with batch selection for delete and a Flow Picker where you can select a single Flow or Process Builder and then work with a List View of all of its active and inactive versions.
Here’s a video of the component in action.