I understand the "Is Active" property name is named activeCondition in scripting, however this is a Boolean value, and I can't seem to write an expression written to it. Is there a way to write to the expression binding from a script, similar to the format below, where activeConditionExpression is the scripting name for the "Is Active" expression binding and myExpression is the expression I wish to write to this binding?
I suggest you add an expression normally and then export the tag's json and have a look at what the value of that prop is. You will need to follow suit and use system.tag.configure to write the config change back to the tag. Ensure that you set the mode to merge changes, not to overwrite them.
e.g.
Example tag JSON with manually configured (bogus) expression:
tagpath: [default]System/New Tag
the tag defs must contain at a minimum the name key
all included property values must be complete, not partials. I.e. structures like alarms, writePermissions, etc. values cannot be provided as partials and merged, they must contain the entire structural definitions