Hello all,
Last week I asked a question regarding 'auto updating choice list' and got some directions using 'select_one_from_file' which I was not aware of. This was great! (https://community.esri.com/t5/arcgis-survey123-questions/update-choice-list-with-python-api-in-notebook/m-p/1042263#M33537)
My main goal of using this approach is automating choice list update process through Python or overwrite csv on AGOL (added as Linked content in the Connect), not necessarily going through Survey123 Connect. Based on the comment I received, it sounded like updating CSV on AGOL will automatically update the choice list, but I do not see the expected result.
1. Survey has been published.
2. Created a csv file for external choice and uploaded on AGOL.
3. Downloaded csv within Linked Content and republished the survey. --> I can see the new list from csv.
-------
4. Overwrite csv manually with new file on AGOL.
5. Checked the survey. The selection list has not been changed. It shows the original choice list.
-------
6. Updated some values (name/ label) in the csv table on AGOL Data page directly.
7. Checked the survey. The selection list has not been changed. It shows the original choice list.
-------
8. Overwrite csv automatically using the sample Python script.
9. Checked the survey. The selection list has not been changed. It shows the original choice list.
-------
10. Republished the survey. The selection list has not been changed.
-------
11. Downloaded csv in Linked Content (updated from previous steps) in the media folder and republished the survey. Then the list has been updated.
So this is a summary.
- Connecting CSV in Linked Content first time populated expected choice list.
- Any changes in CSV is not reflected since then.
- If I download the CSV in media folder, then hit 'refresh' in Survey123 Connect I can see the new list.