17 Jul 2024 10:22 AM
Hi,
I would like to bundle a custom workflow in our app. It should deploy it automatically.
How can I do that ?
Solved! Go to Solution.
17 Jul 2024 10:46 AM
Hi @jegron ,
did you already find https://github.com/Dynatrace/automation-workflow-creator that might give you a kick-start of how it could be done?
Please let me know, if that example is not sufficient for your use case.
Best, Wolfgang
18 Jul 2024 08:12 AM
Thank you. I've seen it but was wondering if I could deploy a workflow via a JSON like that.
For example, the Carbon Impact app automatically deploys a workflow when I deploy the app.
18 Jul 2024 08:33 AM - edited 18 Jul 2024 08:34 AM
Hi @jegron!
As of now, there's no out-of-the-box solution to ship a workflow with a custom app.
In the example of the Carbon Impact app you brought up, they have a custom logic to create and manage the workflow when it is deployed (and to be precise, when the app settings opens).
The easiest way to create a workflow programmatically (within a custom app) is by using an automation SDK client.
Please let me know if this answers your question or if I can help you further.