SFC write to a tag

Hi, I’m using a SFC and I just want to write to a tag with an Action Step, this is what I have:

def onStart(chart, step):
	This will run when the step starts, before any
	other action.

		chart: A reference to the chart's scope.
		step: A reference to this step's scope.
	system.tag.write("New Tag", 0)

When I activate a tag, this action step must run writing 0 to a tag but nothing happen.

Hi MoisesZV,

SFC charts are not part of any specific project so tag writes do not automatically use a project’s default tag provider. So you need to specify the tag provider in the tag path that you provide.

For example:

system.tag.write("[default]New Tag", 0)


Thanks again nmudge!