I know this is something that just came out a month or two ago but, I just recently came across this blog post about using pulldata("@layer") and I was curious what happens when the getRecord parameter would possibly return more than one record?
https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-laye...
The use case I am experimenting with is we have service requests that technicians go out to peoples properties and do inspections. I was looking at the "Calculate values using an attribute query" example and I wanted to do a query that would grab the last record and prepopulate some attributes in a new survey. I was thinking about using the address of the property but that would return multiple records when there have been multiple inspections at property. Is there a way to limit the getRecord parameter to just the last record and to ignore the others?
The way the data is structured I cant think of any other attributes that would be unique to the resident other than their phone number. But the way people change their phone numbers vs. the land line days could lead to some issues. I am open to any suggestions or ideas and I appreciate your time.