To return a specific file based on the file name from a given record
With this function, you can address a specific file attachment of a record, e.g. to display it in an image field or to send it as an attachment of an automatically generated e-mail.
file(record, fileName)To return a specific file based on the file name from a given record.
Result: Returns the file “RE-2021_13874.pdf” from the current record.