Maximum value of field

In the automation action box, you can add the following.

				
					[[formID=4 GET field1.max]]
				
			

This will return the maximum value of a single field across all records