Problem adding variable in email body

value = newValue.value

if value == 1:
    variable = system.tag.read("[default]TagTest")
    variableQV = variable.value
    body = "TagTestValue: " +str(variableQV)
    

	system.report.executeAndDistribute(path="MyPath", project="MyProject", action= "email", 
	actionSettings = {"to":["myEmail"], "smtpServerName":"EmailSetting", "from":"myCompany", "subject":"MySubject", "body":body})
1 Like