Data Destination - kintone
    • PDF

    Data Destination - kintone

    • PDF

    Article summary

    summary

    Help page for ETL Configuration of Data Setting to Cybozu's kintone.

    constraints

    • There are limitations of the kintone API.
    • For each ETL Configuration, an application must be created on the kintone side.
      • It is not possible to automatically create an application from the TROCCO side.
    • If the transfer mode is upsert and the update key contains an empty record, the record will be newly added.
      • Even if a record with an empty key exists in Data Destination, the row will not be updated.

    supplementary information

    Regarding Column Setting in ETL Configuration STEP2

    Enter the field code in the kintone application for the column name in ETL Configuration STEP 2 "Column Setting".

    Setting items

    STEP1 Basic settings

    item nameindispensableContents
    kintone Connection ConfigurationYesFrom the previously registered Connection Configuration of kintone, select the one that has the necessary permissions for this ETL Configuration.
    App IDYesEnter the kintone application ID to which the data Destination will be sent.
    The application ID can be found at the URL on the application screen.
    data-destination-kintone-2024-08-29-5-57-0
    If you want to use the API, please refer to the kintone API official document - Obtaining the ID of the app.
    Guest Space IDNoIf you are using a guest space, please enter the guest space ID.
    transfer modeYesSpecifies the transfer mode.
  • insert: Transfers a record to Data Destination.
  • update: Update records with matching update keys.
  • upsert: If there is a record with a matching update key, update it; otherwise, transfer a new record.
  • update keyYesEnter when update or upsert is selected in transfer mode.
    Enter the column name of the field with unique values.
    You can also specify a record ID. In that case, enter $id.
    Note that the update key must match any column name in the STEP2 Column Setting.

    STEP1 Detailed settings

    Click on Advanced Settings to display the configuration items.

    item namedefault valueContents
    table transfer key-Enter if you want to transfer records to a table (formerly a subtable) in the application.
    For details, please refer to the case where you want to update a table (formerly: sub-table) in the application.
    Number of records to be updated in one request100Enter the number of records to be updated at one time.
    Update processing when NULL is includedUpdate with NULLYou can set how to handle null values contained in ETL Configuration data when updating records on kintone. Please select from the following
    • Update with NULL
      • NULL values in the transferred data will be reflected in the data on kintone to be updated.
    • Skip Update
      • NULL values in Data Source data are not reflected in the data on kintone to be updated , and the original values are retained.
    Note that this item Setting is not applied to records newly appended on kintone, and null values of ETL Configuration data will be added as null values.

    STEP2 Output Option

    You can configure detailed settings regarding columns.

    (data) itemContents
    column nameEnter any column name in ETL Configuration STEP2 Column Setting.
    field codeEnter the field code of the Data Destination kintone application.
    data typeSelect this option if you want to explicitly specify the data type of a field.
    List of available types
  • SINGLE_LINE_TEXT
  • MULTI_LINE_TEXT
  • RICH_TEXT
  • NUMBER
  • CHECK_BOX
  • RADIO_BUTTON
  • MULTI_SELECT
  • DROP_DOWN
  • DATE
  • TIME
  • DATETIME
  • LINK
  • SUBTABLE
  • time zoneYou can enter the time zone to be used during the deployment if you want to transfer with DATE or TIME type.
    Columns to sort rows in tableIf you want to transfer by SUBTABLE type, you can register the values in a table (formerly known as a subtable) with the values sorted in ascending order.
    For details, please refer to the case where you want to update a table (formerly: sub-table) in the application.

    If you want to update a table (formerly a subtable) in the application

    You can also transfer records to a table within the application (referred to as a sub-table from this description onward ).
    In the following, fields are distinguished by hierarchical structure.

    • Fields directly below the application
    • Fields in subtables

    A single transfer can be used to transfer to fields directly under the application and to update fields in sub-tables at once.

    Restrictions on transfers to sub-tables
    • Even if update or``upsert is selected as the transfer mode, data transfer to the sub-table is always a wash.
      That is, the records in the existing sub-tables are replaced by the newly transferred data after each transfer.
    • There must be at least one field directly under the app that consists of unique values.

    Update sub-tables using 2D tables

    Transfer data to be prepared

    Prepare a table in which the values of the fields immediately below the app are flattened and joined in a way that the records of the fields****in the sub-tables are of minimum granularity.
    Specific examples will be used to illustrate this point.

    • Directly below the application: A field called****Case ID and Company Name exists.
    • Sub-table: A sub-table called Activity History with fields called****Activity Date and Activity Details

    In such a case, prepare a table with four columns as follows
    Note that the transfer data need not include elements related to the subtable itself ( activity history in the above example).

    data-destination-kintone-2024-08-29-5-57-1

    Table ETL Configuration STEP1 Detailed ETL Configuration Table Forwarding Keys

    Enter the appropriate column name in the field directly below the app that consists of unique values.
    The records of the subtables are grouped based on the column values specified here.
    The value entered in this section must match any column name in the Column Setting to be set in the next step.

    data-destination-kintone-2024-08-29-5-57-2

    Column Setting for ETL Configuration STEP2

    Enter the column names as follows, respectively

    • Fields directly under the app: Field code of the corresponding field
    • Field in a sub-table: Field Codes in Sub-Tables. Field Codes for Fields in Sub-Tables "
      • . must be included in the entry.

    data-destination-kintone-2024-08-29-5-57-3

    ETL Configuration STEP2Column Settings for Output Option

    By adding a Column Setting, you can explicitly specify the data type for each field.
    For Column Name, enter the column name specified in Column Setting in ETL Configuration STEP 2.
    Note that for fields in sub-tables, the . must be included in the field.

    It is also possible to transfer data to a sub-table by sorting in ascending order based on the value of some field.
    If you want to sort and ETL Configuration, please add column configuration as follows

    • Column Name: From the field in the sub-table specified in Column Setting in ETL Configuration STEP 2, enter the " Field Code of Sub-Table " part of the column name (the part before the . ) of the column name from the field in the sub-table specified in the column definition in STEP 2.
    • Field Code: Enter the field code for the relevant sub-table.
    • Select data type: SUBTABLE.
    • Columns to sort rows in table: please enter the field code of the field in any subtable.
      • In this section, " Field codes for sub-tables . " ( . ) is not required in this section.

    data-destination-kintone-2024-08-29-5-57-4

    When an ETL Job is executed based on the above Job Settings, data will be transferred as follows

    data-destination-kintone-2024-08-29-5-57-5

    If you check the contents of the case ID of 1, you will see that the sub-tables have also been updated.

    data-destination-kintone-2024-08-29-5-57-6


    Was this article helpful?