I have had success writing templates for reports that I have generated using Suvrey123. I currently have Field Maps and Survey123 connected, and have created a related table for the inspection rerecords I plan on collecting. The issue I am having is that I can not figure out of to write the correct syntax that will enable me to pull information from the most recent record in the related table and its attachments. The attachment part is where I am stuck and struggling with because I need to pull the photos that were taken for that specific record. It feels like it is possible, but I just can not figure this one out. Any help on this would be appreciated. Thank you.