• Dhananjay SFDC 2
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Does anyone have a good method to automate deactivating Flows maybe using an Anonymous script or even a scheduled class?

We have managed packages that have Flows in them and the issue is that after we install these into any org for testing, we cannot uninstall the package until we deactivate the Flow for 12 hrs (grumble). Inevitably we make changes to our package and want to uninstall and do a fresh install of the package but cannot. So we'd like to run a job each night to deactivate these Flows automatically since we can always reactivate them easily if needed.