I want to export a found record and its related records into one xml file export. This is so information can be shared with other users and they only have to import one file, rather than many files. So, the script finds the one record with the desired information, then it exports it (via xml - fmpxmlresult) with its related records. That is, when I specified the export, I added the related fields to the exported fields list. The problem is, it is only exporting the first record of the related data, rather than all 3-10 records. Is there a way to make this work? Thanks.