Sorry, I don’t know how to get an attached GAS from a sample app.
Should be easy enough to write the script though:
- onChange()
- if file-id column is blank
- get files from GDrive folder
- iterate through files, does filename match?
- grab matched file’s id and insert into file-id column