We have noticed that when the 'Hide parameter' option is used, we can no longer retrieve the value of that parameter from Automation scripts. In our case, we used the element.GetParameterByPrimaryKey method. This means that when users change the information template it has an impact on the automated actions and might lead to a long investigation to figure out if it was caused by an information template.
Is this expected that the information template has such an impact or is this a bug?
An information template can have an impact on your Automation script , especially if you refer to parameters using their names. If you rename a parameter, then you will have to use the new name to get or set that parameter.
If you want to be independent from the information template, then I'd suggest to manipulate parameters using PID.