getAttachmentsForCurrentRecord
Returns a list of all the attachments of the current record. The list is ordered by id desc. so the newest documents will be the first you will find while iterating over the array.
Example Usages
Example 1
Example 2 Filtering
Return Values
The function returns a sorted list of attachments for the current record. The list is sorted in descending order based on the id properties of the attachments. If there are no attachments found for the current record, it still returns an empty array. Recall that an empty array is not equal to null.
Last updated
Was this helpful?