I can't retrieve my repeat records from submitted surveys using the Inbox. I'm a little confused where I put the allowUpdates=true but I've tried adding it at the begin repeat (xlsFormType) in the bind::esri:parameters field and the Inbox settings using Connect; specifically the query expression. I found this help write-up to be a bit confusing for the Repeat section.
Clarification on what to do would be great! Thanks, Ryan
xls form attached
Solved! Go to Solution.
I think I have seen this issue before. What version of Survey123 are you working with? There was a bug addressing this that was fixed in 3.2: BUG-000117987: Calculation fields fails to retain submitted values in Inbox if the fields are part of 'Repeats' which was fixed in 3.2
Can you apply these changes the excel and keep me updated if it works?
Hi Ryan and Luba,
You only need to put the query and allowUpdates=true clause on the begin repeat question type in the bind::esri:parameters column. You do not need to put this on every question inside the repeat.
Also, for the Inbox settings in Connect, you only need to specify a where clause query if you only want to query a subset of the features in the layer. If you want all records, leave the where clause query blank, and just simply enable the Inbox.
This should be working as expected in the recent 3.5, if you are using 3.3 or an older version, this could be the problem. Also if you are still having issues, please provide a copy of your xlsx form survey, and also let us know if you are using AGO or Portal (what version) and what device/make/model/OS version you are using?
Thanks for the clarification. I'm testing on iOS v3.5.164 (8 plus) and publishing the feature service to AGO using Connect v 3.5.157. I created a new survey just now and I'm still not able to retrieve the repeat records. I JUST have allowUpdates=true in the bind::esri:parameters column. What gives? Luba Hristova, I did try and populating all the repeat fields with allowUpdates=true and still didn't work Survey attached. Thanks!
Yes, you need the query parameter at a minimum on the begin repeat to return any repeat records. Without the word query or a query='something' clause nothing is queried from the feature service and returned.
By default allowUpdates is false if not specified as a parameter, so only if you want the users to edit existing records in the repeat do you need to put allowUpdates=true. And the opposite applies for allowAdds. By default allowAdds is true if not specified, meaning new records can be added to the repeat, but if you want to limit the user so that new records can not be added, you can use allowAdds=false.