(Sorry if this is the wrong place to post)
I am trying to export filtered records as an xlsx/csv file from a script run on the server. I am looking to have to script run every night around 3am. Here is the script I am running:
The script is scheduled on the server and has full access privileges to login and runs at the correct time, however I get an error in my console when this script is ran:
Based on the error, I'm having an issue at the "Export records" step on line 15. Is there something that I may be doing incorrectly to cause this?
(If I change the export path and run this on my computer it works perfectly.)