Perspective onFileReceived - CSV

Awesome - Felt I was close just couldn’t find what I needed. Should have asked sooner :slight_smile:

FYI for future readers below was the updated script to make it work from perspective

	from StringIO import StringIO
	import csv
	fileContents =  event.file.getString("UTF-8")
	reader = csv.DictReader(StringIO(fileContents))
	for row in reader:
		system.perspective.print(row)

Thanks again!

7 Likes