Activate and Deactivate flows by API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 07:22 PM
Hello Experts,
I want to activate and deactivate flows not from Flow Designer Menu, but by using an API or other means.
When I change the Active and Status values of "sys_hub_flow" using the REST API,
it looks like the change has been made successfully even on Flow Designer,
but in reality the flow does not work.
If you have a solution, please help me.
Or is there any other way to activate or deactivate flows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 03:27 AM
And in that case they can go to the flow and inactivate it. At least you then know that it limits the chance of failure.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 03:35 AM - edited 07-31-2024 03:37 AM
From a 'robustness' point of view, I would try to handle es much as possible in the flow itself rather than promote/allow manual handling in prod.
1. introduce a 'master error handling subflow' for the whole instance that regulates how you want to generally handle flow errors (could be triggering an event, notification, create an incident, whatever)
2. For every module/process/subprocess (or flow), introduce a specific process/data error handling subflow that tries to either fix things (if possible.. sometimes it's just not) or otherwise move the source record into a common target state and then executes the 'master error handling subflow'
This should take care of most errors in a orderly fashion, which means the 'break the glass' scenarios where admin users start disabling flows in prod are avoided as this gives a false sense of hope. Think about the backlog of tasks/records in various states that you have to 'correct' after you actually fixed the flow.. You really want to avoid that.