Setting mqtt out node properties from json string

Hi,
Is it possible to set the properties of a mqtt out node e.g. server name, port, protocol, username, password etc from a function in node red? Along the same line as msg.qos=2 and msg.retain=false and msg.topic="my/topic"

yes.

From the built in help...

Demo...

Thanks Steve-Mcl, much appreciated.