Hello Dojo,
Is there any way in automation to get the configured input data from a particular service template?
Kind regards,
Ana
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 22nd November 2024
Hi Ana,
I don't know my understand is correct but using following codes, you can find input data definition from PreRequiredData[].
ServiceFilter filter = new ServiceFilter { NameFilter = "Service Template Name" };
Service service = engine.FindServiceTemplates( filter ).FirstOrDefault();
service.ServiceInfo.TemplateDefinition.PreRequiredData[] contains necessary data.
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 22nd November 2024
I ended up not needing this. Decided to go on a different route. Not sure the if the answer below works.