I've added a few process builders in my managed package. Now when a subscriber uninstalls our package, they've to first deactivate all the process builders.
So is there any way we can deactivate our process builders through the apex? So we can write it in the postinstall script & deactivate our process builders before uninstalling the package, so our subscribers don't need to deactivate those manually.
I searched but couldn't find the proper solution for this issue. Though somehow I got to know that this can be achieved through tooling API.
So is there any documentation available for the API?
Thanks in advance.