---
sourceDocument: Xanadu API リファレンス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# getKeys

# getKeys {#ariaid-title1}

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

サンプル値でターゲットテーブルをクエリし、カンマ区切りの `sys_id` リストを返します。

## 入力フィールド

ターゲットテーブルの任意のフィールド値。

## 出力フィールド

[一意のレコード識別子 (sys_id)](https://www.servicenow.com/docs/access?context=c_UniqueRecordIdentifier&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US) 値のカンマ区切りリストを含む SOAP 応答要素sys_id。

## サンプル SOAP メッセージ

サンプル SOAP 要求  

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">
       <soapenv:Header/>
       <soapenv:Body>
          <inc:getKeys>
             <category>hardware</category>
          </inc:getKeys>
       </soapenv:Body>
    </soapenv:Envelope>

サンプル SOAP 応答  

    <soapenv:Envelope xmlns:inc="http://www.service-now.com/incident" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
          <getKeysResponse>
             <sys_id>46e18c0fa9fe19810066a0083f76bd56,46e57642a9fe1981000b96a5dca501ff,46f1784ba9fe19810018aa27fbb23482</sys_id>
             <count>7</count>
          </getKeysResponse>
       </soapenv:Body>
    </soapenv:Envelope>

## 言語固有のサンプルメッセージ

言語固有の getKeys のサンプルについては、次のトピックを参照してください。

[Perl SOAP::Lite](https://servicenow-prod.fluidtopics.net/nWuN6ucFH7sDEeqHkXc1JQ "Perl Web サービスクライアントとの統合を示す例。")

[Java Apache Axis2](https://servicenow-prod.fluidtopics.net/2x6e3mAGY8f4wnvM3qlwzw "getKeys 関数を呼び出して、カテゴリが Hardware であるすべてのインシデントをクエリする Axis クライアントプログラムの例。")

[Python](https://servicenow-prod.fluidtopics.net/e7HFc0szZeU~4EgP8rEtlA#c_PythonWebServicesClientExamples__getKeys)

