Do you want to download survey data, including photo attachments? This blog describes, step by step, how you you can do it.
Before we start, let me point out that there are handy Export tools in the Survey123 website. They let you export your survey data as a CSV, Excel, KML, Shapefile or File Geodatabase. You can choose to export all your survey records, or just a subset.
You can also export your survey data from the item details page of your survey's layer item.
The only caveat with these export methods is that you can't download your photo attachments. Technically, you could get your images through the file geodatabase format, but what if you want to export your data and have all your photos in their original format in a folder? That's what this blog post is about.
Downloading your photos and documents in their original format requires a Python script and ArcGIS Pro. I will describe how to do it step-by-step. Even if you do not have experience with Python, you will be able to do this.
The Python script was developed by @ZacharySutherby Zach loves Python and he is always looking for new ideas to automate common Survey123 tasks. The script is part of the Survey123 developer documentation.
At this point, the notebook will open. With a few minor changes it will be ready to run.
Earlier, I asked you to disregard the portalURL, username and password parameters. If you ignored me and set those up, then you can skip the next instruction. If you left the portalURL, username and password parameters unchanged, then follow the next step
The script takes about 20 seconds to initialize. Be patient.
The script has a few other parameters that you can tweak. It is all superbly documented so I do not anticipate you will run into any issues with them.
This is one of many scripts available through the Survey123 developer documentation. I encourage you to explore and play with other scripts. You will find samples to programmatically create reports, move surveys across organizations and more.
Many thanks to @ZacharySutherby and the Survey123 documentation team for their great work with this. If you have ideas for new scripts, post your comment below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.