30 Sep 2025
	
		
		12:15 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		30 Sep 2025
	
		
		08:01 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			MaciejNeumann
		
		
		
		
		
		
		
		
	
			
		
In workflows I need to build an alert to execute this script which does a countIf of two parameters and then trigger an alert if both counts are higher than a hardcoded threshold. The results are showing as below as type long, but the actual value appears to be a string.
As an example of just trying to get a second trigger to run I have a custom condition of:
{{result("execute_query")["records"][0]["count_process"]>0}}
Which bring back an error saying the given results are of type string while I'm trying to do an int operator.
Any suggestions of what I am doing wrong here, in the custom conditions, the DQL, or another setting to get the output to be properly as a long/int?