Customize

Copy Attachment of Other Records

Summary

Copy the attached files of the specified records and upload them to Kintone to paste them into other fields.

How to use

When this action is executed, attachments are copied and saved in Kintone temporarily. The copied attachments will reduce disk storage. No files have been assigned to any fields at this time.

When multiple files are attached in the field specified as the Source Attachment Field, all files will be copied.

The copied attachments can be set to fields in other records using field mapping, such as “Add New Record.”

Example: Creating a new record and setting the copied attachment file to a field in that record.

  1. First, create an Action that executes the “Copy Attachment of Other Records.” Assume the action number is 1.
  2. In that case, enter “=$1” in the “Value” field for the Attachment field within the “Mapping” parameter of the “Add New Record” action. If the “Copy Attachment of Other Records” action number is 2, enter “=$2” instead.

Parameters

Set Record, Source Attached Field, and When there are multiple records.

Record

Select the action that retrieved the records that have the attachments to copy.

Source Attachment Field

Select the Attachment field that contains the files to copy.

Attachment fields in the table cannot be selected.

When there are multiple records

Determine how to copy files when multiple records exist in the “Record”.

In the case of “Get from only first record,” only the attached file from the first record among them will be retrieved. It does not mean that there will be only one attachment. If multiple attachments are in the “Source Attachment Field” of the first record, all of them will be copied.

In the case of “Get all attachments”, it copies all attachments from the “Source Attachment Field” of all records included in “Record”.

Restrictions

  • If the record specified by the “Record” parameter is in the guest space, and the apps to be customized is located outside the guest space, an error will occur at runtime and it cannot be copied.