---
sourceDocument: Xanadu API リファレンス
sourceDocumentLink: https://www.servicenow.com/docs/r/ja-JP/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# NotifyPhoneNumber - スコープ指定

# NotifyPhoneNumber - スコープ指定 {#ariaid-title1}

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

NotifyPhoneNumber API を使用すると、Notify 電話番号に関する情報をクエリーできます。

`sn_notify` 名前空間で、スコープ対象の NotifyPhoneNumber API とその関連メソッドを実行します。

## スコープ指定の NotifyPhoneNumber - getDialCode() {#ariaid-title2}

Notify 電話番号の国際ダイヤルコードを返します。
{#NPNScoped-getDialCode__table_uvw_tv5_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 1. パラメーター]

{#NPNScoped-getDialCode__table_uvw_tv5_bgb} {#NPNScoped-getDialCode__table_vvw_tv5_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | ある国の国際ダイヤルコード。 |
[表 : 2. 返される内容]

{#NPNScoped-getDialCode__table_vvw_tv5_bgb}  
この例では、電話番号のダイヤルコードを取得する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.getDialCode());
    }

## スコープ指定の NotifyPhoneNumber - getID() {#ariaid-title3}

電話通信プロバイダーによって定義されたこの電話番号の ID を返します。
{#NPNScoped-getID__table_hkv_ny5_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 3. パラメーター]

{#NPNScoped-getID__table_hkv_ny5_bgb} {#NPNScoped-getID__table_ikv_ny5_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 電話通信プロバイダー内の番号の識別子。 |
[表 : 4. 返される内容]

{#NPNScoped-getID__table_ikv_ny5_bgb}  
この例では、電話番号に固有の識別子を取得する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.getID());
    }

## スコープ指定の NotifyPhoneNumber - getNumber() {#ariaid-title4}

現在の Notify 発信者の電話番号を数値で返します。
{#NPNScoped-getNumber__table_dgp_m1v_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 5. パラメーター]

{#NPNScoped-getNumber__table_dgp_m1v_bgb} {#NPNScoped-getNumber__table_egp_m1v_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | E.164 準拠の電話番号。 |
[表 : 6. 返される内容]

{#NPNScoped-getNumber__table_egp_m1v_bgb}  
この例では、Notify 発信者の電話番号を取得する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.getNumber());
    }

## スコープ指定の NotifyPhoneNumber - getOwner() {#ariaid-title5}

この電話番号に関連付けられた電話通信プロバイダーを返します。
{#NPNScoped-getOwner__table_scw_2bv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 7. パラメーター]

{#NPNScoped-getOwner__table_scw_2bv_bgb} {#NPNScoped-getOwner__table_tcw_2bv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 番号に関連付けられた電話通信プロバイダー、すなわち Twilio。 |
[表 : 8. 返される内容]

{#NPNScoped-getOwner__table_tcw_2bv_bgb}  
この例では、指定された電話番号を所有する電話通信サービスを取得する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.getOwner());
    }

## スコープ指定の NotifyPhoneNumber - getTerritory() {#ariaid-title6}

電話番号に関連付けられている国を返します。
{#NPNScoped-getTerritory__table_e1q_32v_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 9. パラメーター]

{#NPNScoped-getTerritory__table_e1q_32v_bgb} {#NPNScoped-getTerritory__table_f1q_32v_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 電話番号が属する国の名前。 |
[表 : 10. 返される内容]

{#NPNScoped-getTerritory__table_f1q_32v_bgb}  
この例では、Notify 発信者の国を取得する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.getTerritory());
    }

## スコープ指定の NotifyPhoneNumber - supportsConferenceCall() {#ariaid-title7}

Notify 電話番号が電話会議をサポートするかどうかを判断します。
{#NPNScoped-supportsConferenceCall__table_rfg_jmv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 11. パラメーター]

{#NPNScoped-supportsConferenceCall__table_rfg_jmv_bgb} {#NPNScoped-supportsConferenceCall__table_sfg_jmv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号が電話会議をサポートするかどうかを示す値。 * true：電話番号は電話会議をサポートしている * false：電話番号は電話会議をサポートしていない {#NPNScoped-supportsConferenceCall__ul_xkc_qmv_bgb} |
[表 : 12. 返される内容]

{#NPNScoped-supportsConferenceCall__table_sfg_jmv_bgb}  
この例では、Notify 発信者が電話会議をサポートしているかどうかを確認する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsConferenceCall());
    }

## スコープ指定の NotifyPhoneNumber - supportsIncomingPhoneCall() {#ariaid-title8}

Notify 電話番号が通話の受信をサポートしているかどうかを判断します。
{#NPNScoped-supportsIncomingPhoneCall__table_wlt_lnv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 13. パラメーター]

{#NPNScoped-supportsIncomingPhoneCall__table_wlt_lnv_bgb} {#NPNScoped-supportsIncomingPhoneCall__table_xlt_lnv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号が着信電話をサポートするかどうかを示す値。 * true：電話番号は着信電話をサポートする * false：電話番号は着信電話をサポートしない {#NPNScoped-supportsIncomingPhoneCall__ul_xkc_qmv_bgb} |
[表 : 14. 返される内容]

{#NPNScoped-supportsIncomingPhoneCall__table_xlt_lnv_bgb}  
この例では、Notify 発信者が着信電話を受信できるかどうかを確認する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsIncomingPhoneCall());
    }

## スコープ指定の NotifyPhoneNumber - supportsIncomingSMS() {#ariaid-title9}

Notify 電話番号が SMS メッセージの受信をサポートしているかどうかを判断します。
{#NPNScoped-supportsIncomingSMS__table_lxf_x4v_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 15. パラメーター]

{#NPNScoped-supportsIncomingSMS__table_lxf_x4v_bgb} {#NPNScoped-supportsIncomingSMS__table_mxf_x4v_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号が着信 SMS メッセージをサポートしているかどうかを示す値。 * true：電話番号が着信 SMS メッセージをサポートしている * false：電話番号が着信 SMS メッセージをサポートしていない {#NPNScoped-supportsIncomingSMS__ul_xkc_qmv_bgb} |
[表 : 16. 返される内容]

{#NPNScoped-supportsIncomingSMS__table_mxf_x4v_bgb}  
この例では、Notify 発信者が着信 SMS メッセージを受信できるかどうかを判断する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsIncomingSMS());
    }

## スコープ指定の NotifyPhoneNumber - supportsOutgoingPhoneCall() {#ariaid-title10}

Notify 電話番号が通話の発信をサポートするかどうかを判断します。
{#NPNScoped-supportsOutgoingPhoneCall__table_vkq_bqv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 17. パラメーター]

{#NPNScoped-supportsOutgoingPhoneCall__table_vkq_bqv_bgb} {#NPNScoped-supportsOutgoingPhoneCall__table_wkq_bqv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号が通話の発信をサポートしているかどうかを示す値。 * true：電話番号は通話の発信をサポートしている * false：電話番号は通話の発信をサポートしていない {#NPNScoped-supportsOutgoingPhoneCall__ul_xkc_qmv_bgb} |
[表 : 18. 返される内容]

{#NPNScoped-supportsOutgoingPhoneCall__table_wkq_bqv_bgb}  
この例では、Notify 発信者が通話を発信できるかどうかを確認する方法を示します。

    var numbers = sn_notfy.Notify.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsOutgoingPhoneCall());
    }

## スコープ指定の NotifyPhoneNumber - supportsOutgoingSMS() {#ariaid-title11}

Notify 電話番号が SMS メッセージの送信をサポートしているかどうかを判断します。
{#NPNScoped-supportsOutgoingSMS__table_pct_srv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 19. パラメーター]

{#NPNScoped-supportsOutgoingSMS__table_pct_srv_bgb} {#NPNScoped-supportsOutgoingSMS__table_qct_srv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号が SMS メッセージの送信をサポートしているかどうかを示す値。 * true：電話番号が SMS メッセージの送信をサポートしている * false：電話番号が SMS メッセージの送信をサポートしていない {#NPNScoped-supportsOutgoingSMS__ul_xkc_qmv_bgb} |
[表 : 20. 返される内容]

{#NPNScoped-supportsOutgoingSMS__table_qct_srv_bgb}  
この例では、Notify 発信者が SMS メッセージを発信できるかどうかを判断する方法を示します。

    var numbers = sn_notify.NotifyScoped.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsOutgoingSMS());
    }

## スコープ指定の NotifyPhoneNumber - supportsRecording() {#ariaid-title12}

Notify 電話番号が通話の記録をサポートしているかどうかを判断します。
{#NPNScoped-supportsRecording__table_qxv_5sv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 21. パラメーター]

{#NPNScoped-supportsRecording__table_qxv_5sv_bgb} {#NPNScoped-supportsRecording__table_rxv_5sv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号が通話の記録をサポートしているかどうかを示す値。 * true：電話番号は通話の記録をサポートしている * false：電話番号は通話の記録をサポートしていない {#NPNScoped-supportsRecording__ul_xkc_qmv_bgb} |
[表 : 22. 返される内容]

{#NPNScoped-supportsRecording__table_rxv_5sv_bgb}  
この例では、Notify 発信者が通話を記録できるかどうかを判断する方法を示します。

    var numbers = sn_notify.Notify.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsRecording());
    }

## スコープ指定の NotifyPhoneNumber - supportsWebRTC() {#ariaid-title13}

Notify 電話番号が、WebRTC の実装などでのブラウザーへのコールをサポートしているかどうかを判断します。
{#NPNScoped-supportsWebRTC__table_knk_vtv_bgb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 23. パラメーター]

{#NPNScoped-supportsWebRTC__table_knk_vtv_bgb} {#NPNScoped-supportsWebRTC__table_lnk_vtv_bgb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | Notify 電話番号がブラウザー間 (WebRTC) のコールをサポートしているかどうかを示す値。 * true：電話番号はブラウザー間 (WebRTC) のコールをサポートしている * false：電話番号はブラウザー間 (WebRTC) のコールをサポートしていない {#NPNScoped-supportsWebRTC__ul_xkc_qmv_bgb} |
[表 : 24. 返される内容]

{#NPNScoped-supportsWebRTC__table_lnk_vtv_bgb}  
この例では、Notify 発信者がブラウザー間のコールを送受信できるかどうかを判断する方法を示します。

    var numbers = sn_notify.Notify.getPhoneNumbers();
     
    // Here numbers is of type List
    if (numbers.size() > 0) {
       var number = numbers.get(0);
     
       // Here number is of type NotifyPhoneNumber
      gs.info(number.supportsWebRTC());
    }


