Inspired by this post, I wrote a script to update attachment keywords in a Hosted feature layer. The Hosted feature layer was created in Survey123 Connect and then data was imported to the feature layer in ArcGIS Online using the Update Data option.
Layer captures address information (without attachments) and a repeat (related table) collecting waste bin information. Attachment is enabled inside the repeat section. There are no multiple attachment questions in the survey.
The script runs successfully, however when I open the survey on phone -> go to Inbox -> open the survey record -> I don't see the attachments - bin photos.
Hi
I would suggest you do the following:
Capture a new record with your survey and attach all the possible attachments.
Save and Synchronise the record back to AGOL
Then open the Feature Layer of your survey in AGOL and go to the REST interface
Query the attachments for your added record and verify that your KEYWORDS from your script matches the keywords in the newly captured record.