Using Credentials variables in subflows

I am using an http request node in a subflow. It requires basic authorisation with an API key as the username. I have declared a subflow property of credentials type called APIKey and in the request node in the subflow have put the username as ${APIKey} and that works fine.

However, if I want to deploy the subflow to another system by export/import the key is lost in the subflow settings, which is as it should be, but unfortunately inside the subflow all the ${APIKey} entries in the request nodes themselves are also lost. I can understand why. Is there any way around this? I wonder whether entering an env var spec in a credentials field should not actually be treated as a credential.

1 Like

I also vote for this.