Customize

Download All Attachments

Summary

Download all attached files as a single zip file to the user’s browser.

How to use

When you initiate this action, a dialogue indicates that the files are being downloaded. The download will then begin. The dialogue will close once the download is complete, and the files will be saved using the browser’s standard download method.

The downloaded zip file will be in a compressed format.

The zip file’s contents are organized according to the following folder hierarchy.

  • If the Attachment field is outside the table field:
    • Record number/Field code/Attached file name on Kintone
  • If the Attachment field is a field within the table:
    • Record number/Field code/Table row number/Attached file name on Kintone
    • The row numbers in the table begin at 1 for the first row.

If there are duplicate attachment file names on Kintone, a sequential number such as (2), (3), etc. will be added to the end of the file name.

If no files were attached to any record, an error occurred, and the download will not proceed.

Parameters

Set Record, Attachment Fields, and File Name.

Record

Select the action that retrieved the records that have the attachment to download.

This parameter is optional. If omitted, the records of the current screen will be targeted. For example, if a record details screen is displayed, the record shown on that screen will be the target. If a record list screen is present, all records visible in the list will be the target.

If there are no records at runtime, it will result in an error.

Attachment Fields

Select the Attachment fields you want to include in the zip file from the selected apps in the Record. Multiple selections are possible, but the order cannot be specified.

Only Attachment field can be selected.

Fields within the table can also be selected. When specifying fields within a table, all attachments for every row in that table will be included in a zip file.

File Name

Enter the file name to use for downloading.

The default value is “attachment_${format(now(), ‘YYYYMMDDHHmmss’)}.zip”. The ${format…} portion dynamically includes the date and time of the execution. You can remove this part and not include the date and time in the file name.

Restrictions

  • Cannot be used in the record addition screen or the record editing screen.

  • No actions are permitted on the screen while files are downloading.

  • The maximum size and number of files that can be downloaded depend on the processing power of the user’s PC or smartphone. The error types that occur when exceeding processing capacity vary on the browser. If you encounter an error, please try reducing the file size or the number of downloads.