Generate and output a PDF file based on the template file and record data.
Some preparations are necessary in advance.
You will need the API key for gusuku. This API key is different from the API token of the Kintone app. The API key for gusuku can be issued and obtained from gusuku Admin.
Prepare a template file. For information on how to create a template file, see Excel/PDF Output Template Reference Manual.
In addition, a Kintone app is also needed to save the template. Add an Attachment field in the app you created, and prepare records so there is one record per template in this field.
In the Customine customization, create a customization that selects a record that has saved the templates to apply and records that will output data.
Finally, set up “Output PDF” within the customization and set the template and output records as parameters.
The output may take some time, so a dialog will be displayed during the output processing. The action will be completed when the output is finished.
Set Gusuku API Key, Data Record, Template Record, Template Field, Output Destination, and File Name.
Specify the API key for gusuku.
Please note that this is not about the API token of the Kintone app.
Select the records that will be the output data.
If omitted, the record of the screen currently open by the user will be the data record. When in the list view, the records displayed on the current page of the list are targeted, while in the record detail or edit view, only one record is targeted. However, it cannot be omitted to specify in the calendar view.
Select the record containing the template file.
If there are no selected records at runtime, it will result in an error.
Select the Attachment field in the “Template Record” that contains the template file.
Only Attachment field can be selected. Fields in tables cannot be selected.
If no files are attached in the Attachment field, an error will occur at runtime.
The file extension of the attached file must be .xlsx. If the file’s extension is other than that, an error will occur at runtime.
Select a method to output the generated PDF file.
Enter a file name.
This name will be the default file name for saving files and the file name of the attachment field.
If the output destination includes “Browser Tab” or “Download,” the operation to open a tab from customization will be blocked if the pop-up blocker is enabled in the user’s browser settings. Selecting “Download” will also download the file in a separate tab, so if a pop-up blocker prevents the download, it will not occur. Please allow pop-ups in the browser settings.
If the size of “Data Record” exceeds approximately 50MB, an error will occur.
Passing the records obtained with “Retrieve Table Rows as Records” to “Data Record” results in an error.
If the output process does not finish within 10 minutes, it will result in an error.