How to read tag parameters in python script?

Hi,
I want to print a list of tags in specific path and the first parameter in each tag.
I can read the name of each tag and want to ask how to get the first parameter?
All tags have first parameter.
This is the code of the name.

tags = system.tag.browseTags(parentPath="projectName/CM/Transmitters")
for t in tags:
	print(t.name)
	

Thanks

https://docs.inductiveautomation.com/display/DOC81/system.tag.getConfiguration
the if is required as not all tags have parameters

	tags = system.tag.browseTags(parentPath="projectName/CM/Transmitters")
	for t in tags:
		print(t.name)
		tagConfig = system.tag.getConfiguration(t.name,False)[0]
		if 'parameters' in tagConfig :
			print(tagConfig['parameters'])
1 Like

Thank you :slight_smile:

1 Like