---
sourceDocument: Xanadu のアプリケーションとの統合の作成
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/integrate-applications

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu のアプリケーションとの統合の作成

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Table コネクタのメソッド

# Table コネクタのメソッド {#ariaid-title1}

* リリースバージョン: Xanadu
* 
* 更新日 2024年08月01日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：7分

Table コネクタは、RPA デスクトップデザインスタジオ の自動化 Workflow の一部として、表形式データに対してさまざまなアクションを実行する複数のメソッドを提供します

## SetTable {#connectors-table-methods__section_ttl_lzt_jrb}

Workflow にテーブルを挿入します。SetTable メソッドは、データテーブルに対して他の処理を行う前に使用する必要があります。

入力
:   [テーブル](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__table)

## AddColumn {#connectors-table-methods__section_ffv_1kz_hrb}

テーブルに列を追加します。列の位置は、指定されたインデックス値によって決定されます。

入力
:   [Name](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__AddColumn-input-name)
:   [ColumnIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__addcolumn-input-ColumnIndex)

## AddColumns {#connectors-table-methods__section_n4w_pg1_3rb}

別のメソッドまたはコンポーネントから列名を受け取って、テーブルに複数の列を追加します。追加された列を表示するには、GetTable メソッドを使用します。

入力
:   [名前](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__name)

## AddRow {#connectors-table-methods__section_wbj_ct3_lrb}

指定されたインデックスに行とその内容を追加します。行の内容を追加するインデックス値を設定するには、次のアクションを実行します。  
1. コンポーネント設定アイコン (![コンポーネント設定アイコン]()) をクリックします。
2. インデックスの追加アイコン (![インデックスの追加アイコン]()) をクリックします 。
3. インデックスを入力します。
4. 複数のインデックスを追加するには、手順を繰り返します。
5. \[OK\] をクリックします。  
   注:  
   追加される行ごとに、データ入力ポートが追加されます。
{#connectors-table-methods__ol_irg_5kp_qsb}
{#connectors-table-methods__table_r4v_4ms_f5b__entry__7}

| パラメーター | 説明 | データポートタイプ | データタイプ | デフォルト値 | 必須？ | メモ |
|-|-|-|-|-|-|-|
| RowIndex | 行のインデックスを取得します。 | データ入力 | 整数 | デフォルト値なし | いいえ |   |
| Cell index | 追加された行のセル内容を取得します。 行内のセルの位置は、入力したインデックスによって異なります。 | データ入力 | オブジェクト | デフォルト値なし | いいえ | 値 0 は左から 1 番目の行のセルを追加し、値 1 は 2 番目の位置のセルを追加し、以下同様に続きます。 |
[表 : 1. AddRow メソッドのパラメーター]

{#connectors-table-methods__table_r4v_4ms_f5b}

## GetTable {#connectors-table-methods__section_xts_dmp_qsb}

AddColumn、AddColumns、および AddRow の各メソッドで作成したテーブルを返します。  
注:  
このメソッドは、AddColumn、AddColumns、および AddRow の各メソッドを実行した後に実行する必要があります。

出力
:   [DataTable](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__getTable-ouput-datatable)

## ClearColumns {#connectors-table-methods__section_lzd_5rm_3rb}

テーブルからすべての列の値をクリアします。

## ClearRows {#connectors-table-methods__section_mkl_h31_3rb}

テーブルからすべての行の値をクリアします。

## DeleteColumnByIndex {#connectors-table-methods__section_y4h_4j1_3rb}

指定されたインデックス値に基づいて、列を削除します。

入力
:   [インデックス](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__deletecolumnbyindex-input-index)

## DeleteColumnByName {#connectors-table-methods__section_d5b_2sm_3rb}

指定された名前に基づいて、列を削除します。

入力
:   [Name](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__deletecolumnbyname-input-name)

## DeleteRow {#connectors-table-methods__section_wyl_g2n_3rb}

指定されたインデックス値に基づいて、行を削除します。このメソッドを実行する前に、カスタムインデックス値を行に割り当てる必要があります。

入力
:   [インデックス](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__deleterow-input-index)

## FilterAndSort {#connectors-table-methods__section_dxz_k1p_3rb}

指定された式を使用して、テーブルデータをフィルタリングしてソートします。

入力
:   [式](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__expression)
:   [SortColumnName](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__filterandsort-input-SortColumnName)
:   [順序](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__order)

出力
:   [カウント](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__FilterAndSort-output-count)
:   [Return (DataTable)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__FilterAndSort-output-return)

## FilterByRegEx {#connectors-table-methods__section_r5g_b3p_3rb}

指定された正規表現を使用して、テーブルデータをフィルタリングします。

入力
:   [ColumnIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)、[RegExpression](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__expression)

## FindText {#connectors-table-methods__section_fhb_5ll_lrb}

1 つまたは複数の基準に基づいて、指定されたテーブル内のテキストを検索します。

入力
:   [SearchText](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__searchtext)、[StartPosition](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__startposition)
:   [MatchType](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__findtext-input-matchtype)

出力
:   [CellValue](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__findtext-output-cellvalue)
:   [RowIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__findtext-output-rowindex)
:   [ColIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__findtext-output-colindex)

## GetCellValue {#connectors-table-methods__section_hjb_rml_lrb}

指定された行と列のインデックス値に基づいて、セルの値を返します。

入力
:   [行](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__getcellvalue-input-row)
:   [列](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__getcellvalue-input-column)

## GetCellValueIfRowHas {#connectors-table-methods__section_chl_pjp_3rb}

メソッドが、指定されたテキストと、指定されたインデックス値に基づく行の値を見つけたかどうかを示すブール応答を返します。行の値を指定するには、メソッドを設定する必要があります。  
1. メソッド設定アイコン (![メソッド設定アイコン]()) をクリックします。
2. 行インデックスの追加アイコン (![行インデックスの追加アイコン]()) をクリックします 。
3. 行インデックス値のデータタイプを更新します。
4. 行インデックス値を入力します。
5. \[OK\] をクリックします。
{#connectors-table-methods__ol_vvf_jnp_5sb}  

入力
:   [SearchText](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCellValueIfRowHas-input-searchtext)
:   [SearchColumnIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCellValueIfRowHas-input-searchcolumnindex-string)
:   [StartRowIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCellValueIfRowHas-input-startrowindex)

出力
:   [検出 (Found)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCellValueIfRowHas-output-found)

## GetCellValues {#connectors-table-methods__section_y3c_5jp_3rb}

指定されたインデックス値に基づいて、セルの値を返します。行のインデックス値を指定するには、メソッドを設定する必要があります。設定するには、次の手順を実行します。

1. メソッド設定アイコン (![メソッド設定アイコン]()) をクリックします。
2. 行インデックスの追加アイコン (![行インデックスの追加アイコン]()) をクリックします 。
3. 行インデックス値のデータタイプを更新します。
4. 行インデックス値を入力します。
5. \[OK\] をクリックします。

{#connectors-table-methods__ol_qkn_c4p_5sb}

入力
:   [RowIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCellValues-input-rowindex)

## GetCount {#connectors-table-methods__section_d13_wml_lrb}

作成された行と列の合計数を返します。

出力
:   [行](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCount-output-row)
:   [列](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetCount-output-column)

## GetRowData {#connectors-table-methods__section_n1p_f4l_lrb}

指定されたインデックス値に基づいて、すべての行からデータを返します。

入力
:   [RowIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__getrowdata-input-rowindex)

出力
:   [戻る](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetRowData-output-return)

## GetTableAsCSV {#connectors-table-methods__section_psn_clp_3rb}

テーブルデータを CSV 形式でローカルドライブに保存します。

入力
:   [Filepath](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetTableAsCSV-input-filepath)
:   [Delimiter](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetTableAsCSV-input-delimiter)

## GetTableAsHTML {#connectors-table-methods__section_r5d_dmp_3rb}

テーブルデータを HTML ファイル形式で返します。このメソッドを実行する前に、列、行、およびデータを作成し、GetTable メソッドで実行する必要があります。

出力
:   [戻る](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetTableAsHTML-output-return)

## GetTableAsJson {#connectors-table-methods__section_fc2_1zk_jrb}

テーブルデータを JSON ファイル形式で返します。このメソッドを実行する前に、列、行、およびデータを作成し、GetTable メソッドで実行する必要があります。

出力
:   [Return (String)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__GetTableAsJson-output-return)

## LoadFromExcel {#connectors-table-methods__section_wrj_h2m_jrb}

指定された Excel ファイルからデータ テーブルにシートまたはクエリをインポートします。GetTable メソッドを使用して、データが正しくインポートされたかどうかをテストできます。

入力
:   [FilePath](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__LoadFromExcel-input-FilePath)
:   [SheetOrQuery](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__LoadFromExcel-input-SheetOrQuery)
:   [IsQuery](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__LoadFromExcel-input-IsQuery)

## MatchColumn {#connectors-table-methods__section_fhp_dgm_jrb}

データテーブルから渡された値と列のインデックス値に基づいて、列を照合します。このメソッドを実行する前に、GetTable メソッドを実行する必要があります。

入力
:   [dtTable](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__dttable)
:   [ColumnIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__matchcolumn-input-columnindex)

出力
:   [Return (Boolean)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__matchcolumn-input-return)

## RemoveEmptyColumn {#connectors-table-methods__section_rlg_ygm_jrb}

テーブル内のすべての空の列を削除し、操作後のデータテーブルを返します。

出力
:   [Return (DataTable)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__RemoveEmptyColumns-output-return)

## RemoveEmptyRow {#connectors-table-methods__section_utq_phm_jrb}

テーブル内のすべての空の列を削除し、操作後のデータテーブルを返します。

出力
:   [Return (DataTable)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__RemoveEmptyColumns-output-return)

## SetCellValue {#connectors-table-methods__section_yg4_v4l_lrb}

列と行のインデックス値に基づくセルにデータを追加します。このメソッドを実行する前に、列、行、およびデータを作成し、GetTable メソッドで実行する必要があります。

入力
:   [行](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__setcellvalue-input-row)
:   [列](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__setcellvalue-input-column)
:   \[[値](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__setcellvalue-input-value)\]

## SetCellValueIfRowHas {#connectors-table-methods__section_thd_thm_jrb}

データを検索し、テーブル内の指定されたインデックスの場所に挿入します。

入力
:   [SearchText](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__searchtext)、[SearchColumnIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)、[StartRowIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)

## SetColumnName {#connectors-table-methods__section_dvp_cjm_jrb}

指定された列インデックスと名前に基づいて、列名を更新します。SetTable または SetTable メソッドを使用して、まずテーブルを作成またはインポートする必要があります。

入力
:   [ColumnIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__SetColumnName-input-columnindex)
:   [Name](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__SetColumnName-input-name)

## SetJson {#connectors-table-methods__section_erj_zdq_jrb}

JSON オブジェクトを文字列に変換します。  
ヒント:  
JSON オブジェクトを作成するには、GetTableAsJson メソッドを使用して、値を SetJson メソッドに渡します。

入力
:   [Json (string)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__setjson-input-json-string)

## SetList {#connectors-table-methods__section_kvj_gzt_jrb}

データをリストに変換します。

入力
:   [data](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__SetList-input-data)

## SetRowData {#connectors-table-methods__section_t1p_3zt_jrb}

指定された行データをデータテーブルに挿入します。

入力
:   [RowIndex](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__deleterow-input-index)
:   [data](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__SetList-input-data)

## ToList {#connectors-table-methods__section_rcm_m15_jrb}

指定されたテーブルをリストに変換します。

入力
:   [Return (IEnumerable)](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__tolist-return-Return-IEnumerable)

## VLookUp {#connectors-table-methods__section_lvc_yc5_jrb}

テーブル内の指定された列からデータを返します。

出力
: [Port name](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__portname)、[Search text](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__searchtext)、[Data column index](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)、[Search column index](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)、[Start row index](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)  
値を入力するには、次の手順を行います。

1. メソッド設定アイコン (![メソッド設定アイコン]()) をクリックします。
2. ![値を追加アイコン]()をクリックします。
3. 値を入力します。
4. \[OK\] をクリックします。
{#connectors-table-methods__ol_x5t_yz1_5rb}

## VLookUpSet {#connectors-table-methods__section_j2j_wc5_jrb}

テーブル内の指定された列からデータを返します。

入力
: [Port name](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__portname)、[Search text](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__searchtext)、[Data column index](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)、[Search column index](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)、[Start row index](https://servicenow-prod.fluidtopics.net/l2WDm1nRhhHsyWWmvSFc6w#method-parameter-table__index)  
値を入力するには、次の手順を行います。

1. メソッド設定アイコン (![メソッド設定アイコン]()) をクリックします。
2. ![値を追加アイコン]()をクリックします。
3. 値を入力します。
4. \[OK\] をクリックします。
{#connectors-table-methods__ol_fzf_h1b_5rb}

