16 Jul 2026 02:11 PM
I have a workflow that is triggered automatically by incoming ACTIVE/CLOSE Davis Problem, I need an API to disable the entire workflow outside working hours.
Then I want to enable it again during working hours.
This is really a must to avoid extra license cost as this is run in the non production environment.
I searched the whole Dynatrace documentation but I am not able to find the API
May be someone have come across this and I appreciate any input.
I appreciate your support
Marwan...
17 Jul 2026 02:35 AM
@MarwanC From what I understand you would be charge for the workflow from the moment its deployed/published whether the workflow is running or not running . You would not be able to disable/enable a workflow to save cost.
Alternative option is to use a simple workflow if it fits your use case which do not consume workflow hours
https://docs.dynatrace.com/docs/shortlink/simple-workflow
17 Jul 2026 06:32 AM
Hello @MarwanC
Adding to what @p_devulapalli said — this is worth being precise about, because there are two different things being conflated: the trigger being enabled/disabled vs the workflow being deployed/draft.
On billing: Dynatrace has confirmed in community threads (Solved: Re: DPS Pricing gotchas - workflows storage cost - Community Home) that workflow costs don't differentiate between enabled or disabled workflows — any deployed workflow can be executed at any time, either manually or via API, even if a trigger or schedule is defined, so toggling the trigger via API won't reduce your workflow-hours charge. The kinds of workflows that do avoid workflow-hours are: simple workflows (single-task, restricted functionality) Create a simple workflow in Dynatrace Workflows — Dynatrace Docs
and draft-only workflows (not yet deployed, or un-deployed). Build workflows — Dynatrace Docs
Thanks,
Sujit
17 Jul 2026 08:41 AM
Hi @MarwanC,
Adding the official documentation on how consumption is calculated for draft workflows (and yes, draft workflows don't count toward workflow hours):
Cheers,
Sonja
Featured Posts