I have a managed package which ships with a template process builder which is inactive. I am trying to find a way to activate this process builder via the metadata API. Activating it via the UI is simple, just going to the process builder and clicking "Activate".
To activate an unmanaged process builder, I can simply retrieve it, change the status field and deploy:
sfdx force:source:retrieve -m Flow:MyProcessBuilder
<status>Active</status> in the flow
sfdx force:source:deploy -m Flow:MyProcessBuilder
This results in the process builder being activated.
If I do the same thing with my managed process, this results in the error message:
c:\>sfdx force:source:deploy -m Flow:namespace__PackagedProcessBuilder PROJECT PATH ERROR ───────────────────────────────────────────────────────────── ──────────────────────────── force-app\main\default\flows\namespace__PackagedProcessBuilder.flow-meta.xml Cannot delete managed object ERROR running force:source:deploy: Deploy failed.
Which is confusing because I'm not trying to delete it. How can I activate it via the metadata API?