To return all attachments of a record as an array
In contrast to
file()with this function, you can address all file attachments of a record, e.g. to send them as an attachment of an automatically generated e-mail or search for specific files in a table.
Return: An array with all attachments of the current record.
Return: 10 (If the current record has 10 attachments).
You (Steve Rogers) would like to send an email with the attachments of the current record to Hulk. This would be the script in the button within the record, that Steve would click to trigger the action.
Result: Hulk will receive an email with all the attachments of the current record.