I have written a powershell script that will allow us to add a set of steps to all projects. This works if i select action templates that we have written or that were provided by the community. However when i want to select a built in octopus template like “Manual Intervention Required” my script fails because i cannot find that template.
Below is example code that tries to find the template this fails because “Manual Intervention Required” is not found
$stepTemplateName = “Manual Intervention Required”
$actionTemplate = $repository.ActionTemplates.FindByName($stepTemplateName)
if ($actionTemplate.Id -eq $null)
throw “$($stepTemplateName) doesn’t exist”
when i loop through all templates inside ActionTemplates only templates that we wrote or the community provided show up. do you know how i can find the built in templates?