Mass delete Salesforce Flow versions

PHOTO EMBED

Thu Sep 19 2024 16:09:18 GMT+0000 (Coordinated Universal Time)

Saved by @dannygelf #salesforce #flows #soql

SELECT DurableId, FlowDefinitionView.Label, VersionNumber, Status FROM FlowVersionView WHERE FlowDefinitionView.Label LIKE '%PLACE PART OF THE FLOW NAME HERE%' AND Status != 'Active'



/* NOTE: When IMPORTING (Delete Action) - Mark API Type as "Tooling API", limit the batch to 10 and 1 thread (SF Limitation), and change DurableId to ID */
content_copyCOPY

Deleting old inactive Flow versions

https://caleksiev.wixsite.com/olzteam/post/salesforce-hacks-1-mass-delete-salesforce-flow-versions