10 Mar 2025 08:24 AM
Good morning,
Could I use a workflow element like this:
export default async function
( . . . )
export one async function
( . . . )
export two async function
( . . . )
export three async function
KR Henk
( . . . )
KR Henk
Solved! Go to Solution.
10 Mar 2025 03:35 PM
Reading the documentation, this it not possible. It would be nice to add your own functions and be able to get a more "functional structure" (my opinion). But for this you need to use an app, where you have more freedom (-l
21 Mar 2025 08:02 AM
There are a couple of ways to achieve what you want.
1. You could use config-as-code (Monaco, Terraform) and put your JavaScript functions in .js files, and re-use those files. It's not going to be perfect though, and generally the config-as-code approach with Workflows is a bit tricky (but once you know how it works, it's super easy).
2. You could create your own Dynatrace App, and extend it with Custom Workflow Actions. This is the way to go once you are looking into a more functional structure, and most likely also wanting to share those actions across multiple Workflows, or potentially multiple Dynatrace environments.
21 Mar 2025 08:47 AM
Cool answer, need some time to digest (-; thanks!