Output the Collaboflow document as a PDF file.
Place “Set up the connection settings for the collaboration flow” within the customization and make sure to execute it before “Output the report of the collaboration flow document.”
The report generation will be executed by the user of the collaboration flow set in “Setting up the connection settings of the collaboration flow.” The document must be in a state where it can generate reports from the perspective of the collaborative flow user.
By executing this Do, the output report (PDF) generated in the collaboration flow will be sent to Kintone and set to be in a state that can be placed into the fields of the Kintone app. Just outputting the report of the collaboration flow document does not yet attach it to the field.
For example, by setting the result of the action such as $1 in the mapping of “Adding a record”, you can attach the output PDF file to the new record. Similarly, if you want to set a value in the attachment field of an existing record, you can use “Set value in field”.
Specify the “Connection Settings”, “Document ID”, “Form ID”, “Output Application”, “Output Application’s API Token”, and “File Name”.
Specify the action that sets the connection settings for the collaboration flow.
Specify the document ID of the collaboration flow.
If you are saving the document ID in a Kintone app field, you can also specify it using an expression as follows. For example, if the field code is “Document ID” and the action to retrieve the record from the app is number one, you would write the expression like this.
= $1.Document ID
Specify the report ID of the collaboration flow.
The report ID can be confirmed on the Collaboration Flow screen by going to “App Settings” ⇒ “Form Settings” ⇒ selecting the target form ⇒ and checking the “Report Settings” tab.
Select the Kintone app where you want to save the generated PDF file.
Specify the API token for the Kintone app to save the output PDF file. There are no specific access rights required.
This is the file name that can be attached when attaching to the attachment file field.
This parameter is optional. If omitted, it will be attached with the name output.pdf.
If the file extension is omitted, .pdf will be automatically added.