System.tag.scan in 8.1

Hello,
I need to reuse a script from an ignition 7.9 project in my 8.1 project, and i found that “system.tag.scan”, i don’t really understand what does it do, and i am not very familiar with the 7.9 version.
I checked the doc to see how to use it in 8.1, but I didn’t find.
If someone knows what’s its equivalent in 8.1 or how I can replace it.

It has been deprecated,
https://docs.inductiveautomation.com/display/DEP/system.tag+deprecated
https://docs.inductiveautomation.com/display/DEP/system.tag.scan

Doesn’t always mean it won’t work though.

Perhaps show the entire script, maybe there is a better approach.

Its nearest equivalent in 8.x would be system.tag.requestGroupExecution.

@jlandwerlen thank you,
I ended up with writing my own script, as i didn’t really understand the old one. Here is the part
(comments are in French)

"""
this is a function in the project library
before this, setting some parrametres and updating some local tags 
"""
if row['Station'] == prmStation or row['Station'] == '*':
					
	sColumns = sColumns + ", [" + row['Circuit'] + "], [Etat_" + row['Circuit'] + "], [Pcont_" + row['Circuit'] + "], [CodeDefaut_" + row['Circuit'] + "]"
					
    ##### ETAPE 14
    system.tag.writeBlocking(sTagPathEtape,iRow*100+14)
    
    sPathTagMesures = "["+ prmEdgeWare +"_"+ prmOP +"_default]MESURES"+ prmStation + "/" +row['Circuit']
					
	if prmOP=="XXXX" :
		if  row['Circuit'] == "XX" :  
			sPathTagMesures = "["+ prmEdgeWare +"_"+ prmOP +"_default]M1/" +row['Circuit']
	
	##### ETAPE 15
	system.tag.writeBlocking(sTagPathEtape,iRow*100+15)
	
	
	# Récupération des infos du test
	system.tag.scan(prmEdgeWare+"_"+ prmOP +"_default", "scModules")
	
	
	#iNProg = system.tag.readBlocking(sPathTagM + "/NumProg")[0].value
	fFu = system.tag.readBlocking(sPathTagM + "/Mesure")[0].value
	sFu = str(fFuite)
	sE = str(system.tag.readBlocking(sPathTagMesures + "/Etat")[0].value)
	sPrn = str(system.tag.readBlocking(sPathTagMesures + "/PCont")[0].value)
	sCD = str(system.tag.readBlocking(sPathTagMesures + "/CodeDefaut")[0].value)
	
        logger.info(sPathTagMesures+"=" +sFu+"/"+sE+"/"+sPrn+"/"+sCD)
	
	##### ETAPE 15
	system.tag.writeBlocking(sTagPathEtape,iRow*100+15)

""""
after, updating some other  local tags 
""""

@Kevin.Herron thank you , i’ll try with it.

Does the SPC module have something to do with this function.