# kintoneのマスターデータ取得（クラウド版利用の場合）

<div align="left"><figure><img src="/files/ejBZZeDrq5sOKCU38C1E" alt=""><figcaption></figcaption></figure></div>

## 機能概要

* **kintoneのマスターデータ取得**はkintoneからi-Reporterへ **i-Repo Link Gatewayを利用**して連携を行います。\
  本機能は、マスター選択クラスターのGateway連携で利用するGatewayのアクションファイルの作成までを行います。

<table><thead><tr><th>連携方向</th><th width="214.33333333333331">機能説明</th><th>実行タイミング</th></tr></thead><tbody><tr><td>kintone→i-Reporter連携</td><td>kintoneのデータをi-Repo Gatewayを利用してi-Reporter入力帳票のマスター選択クラスターへ取得します。</td><td>i-Reporterのマスター選択クラスターのデータ取得</td></tr></tbody></table>

{% hint style="info" %}
kintoneアプリからマスターデータとして取得できる最大のレコード件数は、利用している kintone API の制限により500件となります。
{% endhint %}

## マッピング設定の手順

以下の手順に従ってマッピング設定を行ってください。

### 1. kintoneの連携パターンの選択

* **kintoneのマスターデータ取得**メニューをクリックして新規のマッピングを追加します。

<figure><img src="/files/SMmGLqJw8uVPlUs05Eos" alt=""><figcaption></figcaption></figure>

### 2. マッピングコード・名称の設定

* **マッピングコード**と**マッピング名称**を設定します。
* マッピングコードは、**i-Repo Link環境内の全てのマッピング設定を一意に識別するキー**になります。

<figure><img src="/files/9BYSDx4ni2uHttHGNCRC" alt=""><figcaption></figcaption></figure>

### 3. 連携元のkintoneアプリの選択

* kintoneの**データソース**と**kintoneアプリ**を選択します。

<figure><img src="/files/T7sPyE99uJIveDQbYfrQ" alt=""><figcaption></figcaption></figure>

* データソースの追加・設定は、以下のページを参照してください。

{% content-ref url="/pages/Mr8iIh9WBLvgsGDHpX6I" %}
[データソース管理](/i-repo-link-manual/system/2/1.md)
{% endcontent-ref %}

### 4. kintoneアプリから取得するマスターデータのフィールド構成を作成

* i-Repo Designerでマスター選択クラスターのGateway連携に使用するマスターデータのフィールド構成を作成します。（カスタムマスターのテーブルレイアウトの作成）

<figure><img src="/files/xlodchlMV4Rr6s7NYCtf" alt=""><figcaption></figcaption></figure>

### 5. Gatewayの設定

* i-Repo Linkから対象の帳票定義のマスター選択クラスターのGateway設連携定は自動更新されません。**トークンとURLの登録を**[**Designerで設定**](https://cimtops.gitbook.io/custom-master-gateway/designer/parameter-description)を行ってください。

<table><thead><tr><th width="151.39996337890625">Designerの項目</th><th width="266.59991455078125">入力内容</th><th>備考</th></tr></thead><tbody><tr><td>URL</td><td>「Gateway設定」タブのURL</td><td>その他設定など、詳細はi-Repo<a href="https://cimtops-support.com/i-Reporter/ir_manuals/jp/gateway_iot/ConMasGateway_Manual.pdf"> Gatewayのマニュアル</a>をご覧ください</td></tr><tr><td>トークン</td><td>i-Repo Linkの設定「APIトークン管理」</td><td></td></tr></tbody></table>

#### 「Gateway設定」タブのURL

{% hint style="warning" %}
必ず「保存」をした後にURLをコピーください。未保存時のURLは使用できません。
{% endhint %}

<figure><img src="/files/FuFLJSQ7QufZCnwlDS1I" alt=""><figcaption></figcaption></figure>

#### Designerのアクションクラスターの設定画面イメージ

<figure><img src="/files/zmLtfDlmOfn0zypm5gC0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cimtops.gitbook.io/i-repo-link-manual/kintone/2/kintonenomasutdtakuraudono.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
