KrewData Features > Commands > Output App |
A data editing flow always ends with an Output App command.
Output App command specifies the kintone app in which resulting data of data editing flow is outputted. A data editing flow must have at least one Output App command.
The Output App command can automatically number the output and table records. For more information about automatic numbering, see Auto Number.
Setting | Description |
---|---|
Output app | Specify the kintone app to output the result of data editing flow. |
Output method |
Specify how to output resulting data of the data editing flow.
|
Update or Insert |
Specify how to output when Update option is selected.
|
Field in Output App | Displays list of fields in output app. |
Field in Data Editing Flow | Specify fields of resulting data of data editing flow for each field of output app. |
Key to Bulk Update | When update method is set to Update, specify a key field to uniquely identify the records in resulting data of data editing flow. |
Record Output Order | Specify order of outputting records to the output app by setting the sort condition. This setting only targets the new records which are added. It does not reorder the records that already exist in the output app and are just updated. |
Table Record Output Order |
Specify order of outputting records to table of the output app by setting the sort condition. |
In the Select App dialog, select Create New Output App to create an app having same field structure as that of resulting data of data editing flow.
|
For information about field types that can be used in Output App command, see Types of fields.
If the field type in your app is different from the field type in the data editing flow, the field type changes automatically. For information about field types that can be changed, see Field Types That can be Changed section of Set Field Type.
This section discusses about each output method.
This option uniquely identifies record in resulting data through the specified update key, and updates the matching record. If matching record is not found, a new record is added.
In following example, Product and Department field are specified as update key.
When "Update or Insert" is ON
When "Update or Insert" is OFF
If the resulting data record cannot be uniquely identified with the specified update key, an error occurs and the output app is not updated.
Deletes all the records that exist in output app and outputs the resulting data of data editing flow.
Appends the resulting data of data editing flow in the output app.
This section discusses about various output methods of table records. Output method of table record is enabled when output method of parent record is set to Update.
This option uniquely identifies record in resulting data through the specified update key, and updates the matching record. If matching record is not found, a new record is added.
In following example, update key of parent record is specified as Company ID field and that of table record is Product field.
When field of data editing flow is not assigned to field of the output app
Deletes all the records that exist in the table and outputs the resulting data of data editing flow.
When field of data editing flow is not assigned to field of the output app
This section discusses about how records are outputted when a lookup field is updated.
Following example considers a scenario where Order Number field is specified as an update key and a record containing lookup field Customer ID is updated. Company Name and Person In Charge fields are specified as Field Mappings in the lookup settings.
In resulting data of data editing flow, Customer ID changed from "C1001" to "C1004".
As lookup field has updated, Company Name and Person In Charge fields are also updated with value of the record corresponding to the "Customer ID:C1004" record of the Datasource App.
This record does not have a field updated with resulting data of data editing flow, but Person In Charge field of "Customer ID:C1002"of the Datasource App is different in output app before update.
In this case, krewData updates the output app by getting latest value from the Datasource App.
This record is a new record that does not exist in the output app before the update.
krewData retrieves the value of Company Name and Person In Charge field specified as Data Mappings in the lookup settings from the Datasource App, and adds new records in the output app.