Hi all,
I’m trying to split file uploads from a form into separate report rows with a shared Title. Example:
Form input: Title + File A + File B
Desired result:
Row 1: Title + File A
Row 2: Title + File B
In On Created or Edited and On Success, I:
Use insert into to create a new record (Title + File B).
Use updateRecord to remove File B from the original, so it keeps only File A.
This creates three rows:
Record 1: Title + File A
Record 2: Title + File B
Record 3: Title only (unexpected)
Editing any row later creates two more rows like the last one (title only).
When I use the same script only in On Created, it works fine—just two rows as expected. But, I don't want to solve it this way as I'd like to allow users to start with one file and add the second later via edit, but end up with only two total rows.