Generate text data based on the template file and record data.
Prepare a template file. For details on how to create a template file, see the page on How to describe text templates.
In addition, a Kintone app is also needed to save the template. Add an Attachment field or a Text area 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 retrieves records that can save the templates to apply and records that will output data.
Finally, set up “Generate Text from Template” within the customization and set the template and output records as parameters.
The generated text will be set as the result value of the action. The result value of the action can be referenced using expressions like “= $1”.
Set Data Record, Template Record, and Template Field.
Select the record that will be the output data.
There is no error even if the number of records is zero.
Select the record containing the template file.
If there are no selected records at runtime, it will result in an error.
If there are multiple selected records at runtime, there is no error. In this case, a template can be retrieved from the first record.
Select the Attachment field or Text area field in the “Template Record” that contains the template file.
This parameter accepts the following field types:
This parameter does not accept fields that are inside tables.
If you select a Text area field, the content described in that field will be used as the template as is.
If you select the attachment field, the content of the first attachment will be used as the template. Set the file’s character encoding to UTF-8. If no files are attached in that Attachment field, it will result in an error at runtime.
The template file only supports UTF-8 character encoding. Files written in other character encodings are not supported.
The size of the template file is limited to about 1MB.