We have a number of Survey123 forms and I'm looking at the best way to back them up/download them. I have experimented with Microsoft Flow webhooks and this looks like one good method to hold a backup, albeit quite fiddly with the initial set up (where there are a lot of fields in a survey). I'm particularly looking to script the download of all of the surveys and hold timestamped geodatabase backups. I have found the following script at the end of this url which looks fit for purpose:
However, whenever I try to run this script I get the following error:
...Authenticating against your Portal
Traceback (most recent call last):
File "C:\DownloadSurvey123Data.py", line 78, in <module>
exportItemId = export_data['exportItemId']
No matter what itemid I use, I get the same error so I know that this isn't related to one particular feature class. Any help with this would be massively appreciated! I'm drawing a blank trying to get it to run.
Thanks in advance!