---
sourceDocument: Yokohama IT Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/yokohama/it-service-management

 Release :

    - yokohama

ft:locale :

    - ja-JP

ft:publication_title :

    - Yokohama IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# さまざまなインシデント優先度のカスタムアラートトーンを ITSM モバイルエージェント に設定する

# さまざまなインシデント優先度のカスタムアラートトーンを ITSM モバイルエージェント に設定する {#ariaid-title1}

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

ITSM モバイルエージェントでカスタムアラートトーンを設定して、優先度の異なるインシデントを区別します。

## 始める前に

必要なロール：アドミン

## 手順

1. 移動先 すべてシステム通知プッシュメッセージコンテンツ.  
   または、プッシュ通知メッセージコンテンツ \[sys_push_notif_msg_content\] テーブルに移動することもできます。
2. 必要なプッシュ通知メッセージコンテンツレコードを選択します。
3. \[ プッシュメッセージ生成 \] フィールドを次のスクリプトで更新します。  

       // get the priority of current incident
       var currentIncPriority =  current.getValue("priority");
       // define an array to map priority with ringtone
       var customisedRingtones = [
             {
                   "priority": "1",
                   "ringtone": "default"
               },
               {
                   "priority": "2",
                   "ringtone": "default"
               },
               {
                   "priority": "3",
                   "ringtone": "default"
               },
               {
                   "priority": "4",
                   "ringtone": "default"
               },
               {
                   "priority": "5",
                   "ringtone": "default"
               }];
       //override the json["aps"]["sound"] param with the ringtone defined for current priority        
               if(customisedRingtones){
                   for(var i=0;i<customisedRingtones.length;i++){
                      if(customisedRingtones[i].priority && customisedRingtones[i].priority === currentIncPriority){
                      json["aps"]["sound"] = customisedRingtones[i].ringtone;
                       break;
                      }
                   }
               }

   注:  
   着信音を目的のアラートトーン名に置き換えます。スクリプトの更新に使用できる着信音とアラートトーンのリストの詳細については、「 [Configure sounds for push notifications](https://www.servicenow.com/docs/access?context=push-notif-sounds&version=yokohama&pubname=yokohama-mobile&ft:locale=en-US)」を参照してください。
4. \[更新\] を選択します。

